xmlroff Reference Manual |
---|
fo-length-range —
enum FoEnumLengthRange; #define FO_LENGTH_RANGE (object) struct FoLengthRange; struct FoLengthRangeClass;GType fo_length_range_get_type (void); FoDatatype* fo_length_range_new (void); FoDatatype* fo_length_range_new_auto (void); FoDatatype* fo_length_range_new_with_value (FoDatatype *datatype); FoDatatype* fo_length_range_get_minimum (FoDatatype *datatype); FoDatatype* fo_length_range_get_optimum (FoDatatype *datatype); FoDatatype* fo_length_range_get_maximum (FoDatatype *datatype); FoDatatype* fo_length_range_resolve (FoDatatype *shortform, FoDatatype *minimum, FoDatatype *optimum, FoDatatype *maximum,gfloat hundred_percent,GError **error); FoDatatype* fo_length_range_resolve_allow_auto (FoDatatype *shortform, FoDatatype *minimum, FoDatatype *optimum, FoDatatype *maximum,gfloat hundred_percent,GError **error); FoDatatype* fo_length_range_get_length_range_hundred_percent (void);
"maximum" FoDatatype : Read / Write / Construct Only "minimum" FoDatatype : Read / Write / Construct Only "optimum" FoDatatype : Read / Write / Construct Only
GType fo_length_range_get_type (void);
Register the FoLengthRange object type.
Returns : | GType value of the FoLengthRange object type. |
FoDatatype* fo_length_range_new (void);
Creates a new FoLengthRange initialized to default value.
Returns : | the new FoLengthRange. |
FoDatatype* fo_length_range_new_auto (void);
Creates a new FoLengthRange with all components initialized to "auto".
Returns : | the new FoLengthRange |
FoDatatype* fo_length_range_new_with_value (FoDatatype *datatype);
Creates a new FoLengthRange set to value.
datatype : | Value for .minimum, .optimum, and .maximum values of the new FoLengthRange. |
Returns : | The new FoLengthRange. |
FoDatatype* fo_length_range_get_minimum (FoDatatype *datatype);
Gets the .minimum component value of datatype
datatype : | FoLengthRange |
Returns : | The .minimum value of datatype |
FoDatatype* fo_length_range_get_optimum (FoDatatype *datatype);
Gets the .optimum component value of datatype
datatype : | FoLengthRange |
Returns : | The .optimum value of datatype |
FoDatatype* fo_length_range_get_maximum (FoDatatype *datatype);
Gets the .maximum component value of datatype
datatype : | FoLengthRange |
Returns : | The .maximum value of datatype |
FoDatatype* fo_length_range_resolve (FoDatatype *shortform, FoDatatype *minimum, FoDatatype *optimum, FoDatatype *maximum,gfloat hundred_percent,GError **error);
Resolve the shortform and components of the length-range in accordance with Section 5.11, Datatypes, of the XSL 1.0 Recommendation.
Does not change the ref-count of any FoDatatype arguments.
shortform : | Single-value short form of the length-range, or NULL |
minimum : | .minimum component of the length-range, or NULL |
optimum : | .optimum component of the length-range, or NULL |
maximum : | .maximum component of the length-range, or NULL |
hundred_percent : | Length to use as 100% when components expressed as percentages |
error : | GError used for reporting errors |
Returns : | Compound length-range datatype, or NULL if an error occurred |
FoDatatype* fo_length_range_resolve_allow_auto (FoDatatype *shortform, FoDatatype *minimum, FoDatatype *optimum, FoDatatype *maximum,gfloat hundred_percent,GError **error);
Resolve the shortform and components of the length-range in accordance with the definitions of block-progression-dimension and inline-progression-dimension in Section 7.14, Area Dimension Properties, of the XSL 1.0 Recommendation.
Use this when "auto" is an allowed value and percentages are computed into lengths.
Does not change the ref-count of any FoDatatype arguments.
shortform : | Single-value short form of the length-range, or NULL |
minimum : | .minimum component of the length-range, or NULL |
optimum : | .optimum component of the length-range, or NULL |
maximum : | .maximum component of the length-range, or NULL |
hundred_percent : | Length to use as 100% when components expressed as percentages |
error : | GError used for reporting errors |
Returns : | Compound length-range datatype, or NULL if an error occurred |
FoDatatype* fo_length_range_get_length_range_hundred_percent (void);
Get an FoLengthRange with the well-known value of 100%.
Returns : | The FoLengthRange. |
"maximum" (FoDatatype : Read / Write / Construct Only) | Length range maximum value. |
"minimum" (FoDatatype : Read / Write / Construct Only) | Length range minimum value. |
"optimum" (FoDatatype : Read / Write / Construct Only) | Length range optimum value. |
<< fo-length-conditional | fo-name >> |