![]() |
![]() |
![]() |
xmlroff Reference Manual | ![]() |
---|---|---|---|---|
FoDatatype; FoDatatypeClass; #define FO_DATATYPE_ERROR GQuark fo_datatype_error_quark (void); enum FoDatatypeError; FoDatatype* fo_datatype_new (void); FoDatatype* fo_datatype_copy (FoDatatype *datatype); FoDatatype* fo_datatype_get_condity_discard (void); FoDatatype* fo_datatype_get_condity_retain (void); FoDatatype* fo_datatype_add (FoDatatype *arg1, FoDatatype *arg2); FoDatatype* fo_datatype_sub (FoDatatype *arg1, FoDatatype *arg2); FoDatatype* fo_datatype_mul (FoDatatype *arg1, FoDatatype *arg2); FoDatatype* fo_datatype_div (FoDatatype *arg1, FoDatatype *arg2); FoDatatype* fo_datatype_mod (FoDatatype *arg1, FoDatatype *arg2); FoDatatype* fo_datatype_max (FoDatatype *arg1, FoDatatype *arg2); FoDatatype* fo_datatype_min (FoDatatype *arg1, FoDatatype *arg2); FoDatatype* fo_datatype_floor (FoDatatype *arg); FoDatatype* fo_datatype_ceiling (FoDatatype *arg); FoDatatype* fo_datatype_abs (FoDatatype *arg); FoDatatype* fo_datatype_round (FoDatatype *arg); FoDatatype* fo_datatype_negate (FoDatatype *arg);
GObject +----FoObject +----FoDatatype +----FoBoolean +----FoChar +----FoColor +----FoEnum +----FoExpression +----FoId +----FoInteger +----FoKeep +----FoLengthBpIpD +----FoLengthCond +----FoLength +----FoLengthRange +----FoName +----FoNumber +----FoNumeric +----FoPercentage +----FoSpace +----FoString +----FoUnknown +----FoUriSpecification
GQuark fo_datatype_error_quark (void);
Get the error quark for FoDatatype.
If the quark does not yet exist, create it.
Returns : |
Quark associated with FoDatatype errors |
typedef enum { FO_DATATYPE_ERROR_WRONG_DATATYPE, /* Wrong datatype for context */ FO_DATATYPE_ERROR_ADD, /* Cannot add datatype types */ FO_DATATYPE_ERROR_SUB, /* Cannot subtract datatype types */ FO_DATATYPE_ERROR_MUL, /* Cannot multiply datatype types */ FO_DATATYPE_ERROR_DIV, /* Cannot divide datatype types */ FO_DATATYPE_ERROR_MOD, /* Cannot get mod of datatype types */ FO_DATATYPE_ERROR_MAX, /* max() error */ FO_DATATYPE_ERROR_MIN, /* min() error */ FO_DATATYPE_ERROR_FLOOR, /* floor() error */ FO_DATATYPE_ERROR_ROUND, /* round() error */ FO_DATATYPE_ERROR_CEILING, /* ceiling() error */ FO_DATATYPE_ERROR_ABS, /* abs() error */ FO_DATATYPE_ERROR_NEGATE /* negation error */ } FoDatatypeError;
FoDatatype* fo_datatype_new (void);
Creates a new FoDatatype initialized to default value.
Returns : |
the new FoDatatype |
FoDatatype* fo_datatype_copy (FoDatatype *datatype);
Makes a copy of datatype
|
FoDatatype to be copied |
Returns : |
Copy of datatype
|
FoDatatype* fo_datatype_get_condity_discard (void);
Returns : |
The FoDatatype value for conditionality="discard" |
FoDatatype* fo_datatype_get_condity_retain (void);
Returns : |
The FoDatatype value for conditionality="retain" |
FoDatatype* fo_datatype_add (FoDatatype *arg1, FoDatatype *arg2);
Find addition of the values of arg1
and arg2
. arg1
and arg2
are unchanged.
The type of the return value depends on the types of arg1
and
arg2
:
fo_datatype_add (FoInteger, FoInteger) --> FoInteger fo_datatype_add (FoInteger, FoNumber) --> FoNumber fo_datatype_add (FoNumber, FoInteger) --> FoNumber fo_datatype_add (FoNumber, FoNumber) --> FoNumber fo_datatype_add (FoLength, FoLength) --> FoLength fo_datatype_add (FoPercentage, FoPercentage) --> FoPercentage
|
FoDatatype. |
|
FoDatatype. |
Returns : |
FoDatatype with value that is equal to addition of
values of arg1 and arg2 , or FoError if cannot compute addition
of arg1 and arg2 . The type of the return value depends on the
types of arg1 and arg2 .
|
FoDatatype* fo_datatype_sub (FoDatatype *arg1, FoDatatype *arg2);
Find subtraction of the value of arg2
from the value of arg1
.
arg1
and arg2
are unchanged.
The type of the return value depends on the types of arg1
and
arg2
:
fo_datatype_sub (FoInteger, FoInteger) --> FoInteger fo_datatype_sub (FoInteger, FoNumber) --> FoNumber fo_datatype_sub (FoNumber, FoInteger) --> FoNumber fo_datatype_sub (FoNumber, FoNumber) --> FoNumber fo_datatype_sub (FoLength, FoLength) --> FoLength fo_datatype_sub (FoPercentage, FoPercentage) --> FoPercentage
|
FoDatatype. |
|
FoDatatype. |
Returns : |
FoDatatype with value that is equal to subtraction
of the value of arg2 from the value of arg1 , or FoError if
cannot compute subisor of arg1 and arg2 . The type of the return
value depends on the types of arg1 and arg2 .
|
FoDatatype* fo_datatype_mul (FoDatatype *arg1, FoDatatype *arg2);
Find multiple of values of arg1
and arg2
. arg1
and arg2
are
unchanged.
The type of the return value depends on the types of arg1
and
arg2
:
fo_datatype_mul (FoInteger, FoInteger) --> FoInteger fo_datatype_mul (FoInteger, FoNumber) --> FoNumber fo_datatype_mul (FoInteger, FoLength) --> FoLength fo_datatype_mul (FoInteger, FoPercentage) --> FoInteger fo_datatype_mul (FoNumber, FoInteger) --> FoNumber fo_datatype_mul (FoNumber, FoNumber) --> FoNumber fo_datatype_mul (FoNumber, FoLength) --> FoLength fo_datatype_mul (FoNumber, FoPercentage) --> FoNumber fo_datatype_mul (FoLength, FoInteger) --> FoLength fo_datatype_mul (FoLength, FoNumber) --> FoLength fo_datatype_mul (FoLength, FoPercentage) --> FoLength fo_datatype_mul (FoPercentage, FoInteger) --> FoInteger fo_datatype_mul (FoPercentage, FoNumber) --> FoNumber fo_datatype_mul (FoPercentage, FoLength) --> FoLength fo_datatype_mul (FoPercentage, FoPercentage) --> FoPercentage
|
FoDatatype. |
|
FoDatatype. |
Returns : |
FoDatatype with value that is equal to mulisor of
values of arg1 and arg2 , or FoError if cannot compute mulisor of
arg1 and arg2 . The type of the return value depends on the types
of arg1 and arg2 .
|
FoDatatype* fo_datatype_div (FoDatatype *arg1, FoDatatype *arg2);
Find divisor of values of arg1
and arg2
. arg1
and arg2
are
unchanged.
The type of the return value depends on the types of arg1
and
arg2
:
fo_datatype_div (FoInteger, FoInteger) --> FoInteger fo_datatype_div (FoInteger, FoNumber) --> FoNumber fo_datatype_div (FoNumber, FoInteger) --> FoNumber fo_datatype_div (FoNumber, FoNumber) --> FoNumber fo_datatype_div (FoLength, FoLength) --> FoNumber fo_datatype_div (FoLength, FoInteger) --> FoLength fo_datatype_div (FoLength, FoNumber) --> FoLength fo_datatype_div (FoLength, FoPercentage) --> FoLength fo_datatype_div (FoPercentage, FoPercentage) --> FoPercentage fo_datatype_div (FoPercentage, FoNumber) --> FoPercentage fo_datatype_div (FoPercentage, FoInteger) --> FoPercentage
|
FoDatatype. |
|
FoDatatype. |
Returns : |
FoDatatype with value that is equal to divisor of
values of arg1 and arg2 , or FoError if cannot compute divisor of
arg1 and arg2 . The type of the return value depends on the types
of arg1 and arg2 .
|
FoDatatype* fo_datatype_mod (FoDatatype *arg1, FoDatatype *arg2);
Find modulus of values of arg1
and arg2
. arg1
and arg2
are
unchanged.
The type of the return value depends on the types of arg1
and
arg2
:
fo_datatype_mod (FoInteger, FoInteger) --> FoInteger fo_datatype_mod (FoInteger, FoNumber) --> FoNumber fo_datatype_mod (FoNumber, FoInteger) --> FoNumber fo_datatype_mod (FoNumber, FoNumber) --> FoNumber fo_datatype_mod (FoLength, FoLength) --> FoNumber fo_datatype_mod (FoLength, FoInteger) --> FoNumber fo_datatype_mod (FoLength, FoNumber) --> FoNumber fo_datatype_mod (FoLength, FoPercentage) --> FoNumber fo_datatype_mod (FoPercentage, FoPercentage) --> FoNumber fo_datatype_mod (FoPercentage, FoNumber) --> FoPercentage fo_datatype_mod (FoPercentage, FoInteger) --> FoPercentage
|
FoDatatype. |
|
FoDatatype. |
Returns : |
FoDatatype with value that is equal to modulus of
values of arg1 and arg2 , or FoError if cannot compute modulus of
arg1 and arg2 . The type of the return value depends on the types
of arg1 and arg2 .
|
FoDatatype* fo_datatype_max (FoDatatype *arg1, FoDatatype *arg2);
Find maximum of values of arg1
and arg2
. arg1
and arg2
are
unchanged.
|
Instance of child type of FoDatatype. |
|
FoDatatype of same child type as arg1 .
|
Returns : |
FoDatatype of same type as arg1 and arg2 and with
value that is equal to maximum of values of arg1 and arg2 , or
FoError if cannot compute maximum of arg1 and arg2 .
|
FoDatatype* fo_datatype_min (FoDatatype *arg1, FoDatatype *arg2);
Find minimum of values of arg1
and arg2
. arg1
and arg2
are
unchanged.
|
Instance of child type of FoDatatype. |
|
FoDatatype of same child type as arg1 .
|
Returns : |
FoDatatype of same type as arg1 and arg2 and with
value that is equal to minimum of values of arg1 and arg2 , or
FoError if cannot compute minimum of arg1 and arg2 .
|
FoDatatype* fo_datatype_floor (FoDatatype *arg);
Computed floor value of value of arg
. arg
is unchanged.
|
FoDatatype. |
Returns : |
FoDatatype of same type as arg and with value that
is floor value of value of arg , or FoError if cannot compute
floor of arg .
|
FoDatatype* fo_datatype_ceiling (FoDatatype *arg);
Computed ceiling value of value of arg
. arg
is unchanged.
|
FoDatatype. |
Returns : |
FoDatatype of same type as arg and with value that
is ceiling value of value of arg , or FoError if cannot compute
ceiling of arg .
|
FoDatatype* fo_datatype_abs (FoDatatype *arg);
Compute absolute value of value of arg
. arg
is unchanged.
|
FoDatatype. |
Returns : |
FoDatatype of same type as arg and with value that
is absolute value of value of arg , or FoError if cannot compute
absolute value of arg .
|
FoDatatype* fo_datatype_round (FoDatatype *arg);
Computed rounded value of value of arg
. arg
is unchanged.
|
FoDatatype to round. |
Returns : |
FoDatatype of same type as arg and with value that
is rounded value of value of arg , of FoError is cannot round
arg .
|
FoDatatype* fo_datatype_negate (FoDatatype *arg);
Compute negated value of value of arg
. arg
is unchanged.
|
FoDatatype to negate. |
Returns : |
FoDatatype of same type as arg and negated value,
or FoError if cannot compute negated value of arg .
|