![]() |
![]() |
![]() |
xmlroff Reference Manual | ![]() |
---|---|---|---|---|
FoSpace; FoSpaceClass; FoDatatype* fo_space_new (void); FoDatatype* fo_space_new_from_length (FoDatatype *length); void fo_space_set_minimum (FoDatatype *datatype, gfloat new_minimum); gfloat fo_space_get_minimum (FoDatatype *datatype); void fo_space_set_optimum (FoDatatype *datatype, gfloat new_optimum); gfloat fo_space_get_optimum (FoDatatype *datatype); void fo_space_set_maximum (FoDatatype *datatype, gfloat new_maximum); gfloat fo_space_get_maximum (FoDatatype *datatype); void fo_space_set_precedence (FoDatatype *datatype, gint new_precedence); gint fo_space_get_precedence (FoDatatype *datatype); void fo_space_set_condity (FoDatatype *datatype, gboolean new_condity); gboolean fo_space_get_condity (FoDatatype *datatype); FoDatatype* fo_space_get_space_0pt (void); FoDatatype* fo_space_resolve (FoDatatype *shortform, FoDatatype *minimum, FoDatatype *optimum, FoDatatype *maximum, FoDatatype *precedence, FoDatatype *condity, gfloat hundred_percent, GError **error);
"conditionality" gboolean : Read / Write / Construct Only "maximum" gfloat : Read / Write / Construct Only "minimum" gfloat : Read / Write / Construct Only "optimum" gfloat : Read / Write / Construct Only "precedence" gint : Read / Write / Construct Only
FoDatatype* fo_space_new (void);
Creates a new FoSpace initialized to default value.
Returns : |
the new FoSpace |
FoDatatype* fo_space_new_from_length (FoDatatype *length);
Creates a new FoSpace with .minimum, .optimum, and .maximum
components set to length
and .conditionality and .precedence
components set to default values.
void fo_space_set_minimum (FoDatatype *datatype, gfloat new_minimum);
Sets the .minimum component of datatype
|
FoSpace |
|
New .minimum value |
gfloat fo_space_get_minimum (FoDatatype *datatype);
Gets the .minimum component value of datatype
|
FoSpace |
Returns : |
The .minimum value of datatype
|
void fo_space_set_optimum (FoDatatype *datatype, gfloat new_optimum);
Sets the .optimum component of datatype
|
FoSpace |
|
New .optimum value |
gfloat fo_space_get_optimum (FoDatatype *datatype);
Gets the .optimum component value of datatype
|
FoSpace |
Returns : |
The .optimum value of datatype
|
void fo_space_set_maximum (FoDatatype *datatype, gfloat new_maximum);
Sets the .maximum component of datatype
|
FoSpace |
|
New .maximum value |
gfloat fo_space_get_maximum (FoDatatype *datatype);
Gets the .maximum component value of datatype
|
FoSpace |
Returns : |
The .maximum value of datatype
|
void fo_space_set_precedence (FoDatatype *datatype, gint new_precedence);
Sets the .precedence component of datatype
|
FoSpace |
|
New .precedence value |
gint fo_space_get_precedence (FoDatatype *datatype);
Gets the .precedence component value of datatype
|
FoSpace |
Returns : |
The .precedence value of datatype
|
void fo_space_set_condity (FoDatatype *datatype, gboolean new_condity);
Sets the .conditionality component value of datatype
|
FoSpace. |
|
New .conditionality component value. |
gboolean fo_space_get_condity (FoDatatype *datatype);
Gets the .conditionality component value of datatype
|
FoSpace |
Returns : |
The .conditionality value of datatype
|
FoDatatype* fo_space_get_space_0pt (void);
Create and return an FoSpace with the well-known value 0pt.
This saves creation of multiple FoSpace objects that all have the value 0pt.
Returns : |
FoSpace with value 0pt. |
FoDatatype* fo_space_resolve (FoDatatype *shortform, FoDatatype *minimum, FoDatatype *optimum, FoDatatype *maximum, FoDatatype *precedence, FoDatatype *condity, gfloat hundred_percent, GError **error);
Resolve the shortform and components of the space in accordance with Section 5.11, Datatypes, of the XSL 1.0 Recommendation.
|
Single-value short form of the space, or NULL |
|
.minimum component of the space, or NULL |
|
.optimum component of the space, or NULL |
|
.maximum component of the space, or NULL |
|
.precedence component of the space, or NULL |
|
.conditionality component of the space, or NULL |
|
Length to use as 100% when components expressed as percentages |
|
GError used for reporting errors |
Returns : |
Compound space datatype, or NULL if an error occurred |
"conditionality"
property"conditionality" gboolean : Read / Write / Construct Only
Whether or not the space must always be retained.
Default value: FALSE
"maximum"
property"maximum" gfloat : Read / Write / Construct Only
Space range maximum value.
Default value: 0
"minimum"
property"minimum" gfloat : Read / Write / Construct Only
Space range minimum value.
Default value: 0
"optimum"
property"optimum" gfloat : Read / Write / Construct Only
Space range optimum value.
Default value: 0
"precedence"
property"precedence" gint : Read / Write / Construct Only
Precedence of this space compared to others.
Default value: 0