![]() |
![]() |
![]() |
xmlroff Reference Manual | ![]() |
---|---|---|---|---|
FoProperty; FoPropertyClass; #define FO_PROPERTY_ERROR GQuark fo_property_error_quark (void); enum FoPropertyError; FoProperty* fo_property_new_from_expr (FoPropertyClass *property_class, const gchar *expr, FoContext *context, FoProperty *current_font_size, FoFo *fo_node, GError **error); FoDatatype* fo_property_get_value (FoProperty *property); void fo_property_set_value (FoProperty *property, FoDatatype *new_value); gboolean fo_property_class_is_inherited (FoPropertyClass *property_class); gboolean fo_property_is_inherited (FoProperty *property); gboolean fo_property_class_is_shorthand (FoPropertyClass *property_class); gboolean fo_property_is_shorthand (FoProperty *property); FoDatatype* (*FoResolveEnumFunc) (const gchar *token, FoContext *context, GError **err); FoDatatype* (*FoResolvePercentFunc) (gdouble percentage, const FoDatatype *font_size, const FoFo *fo_node, const FoContext *context, GError **err);
"is-inherited" gboolean : Read "is-shorthand" gboolean : Read "value" FoDatatype* : Read / Write
typedef enum { FO_PROPERTY_ERROR_FAILED, FO_PROPERTY_ERROR_EXPRESSION, FO_PROPERTY_ERROR_NO_ENUMERATION, FO_PROPERTY_ERROR_ILLEGAL_NEGATIVE, FO_PROPERTY_ERROR_ZERO_LENGTH, FO_PROPERTY_ERROR_LAST } FoPropertyError;
FoProperty* fo_property_new_from_expr (FoPropertyClass *property_class, const gchar *expr, FoContext *context, FoProperty *current_font_size, FoFo *fo_node, GError **error);
Evaluates expr
as a value of an instance of property_class
.
The other parameters provide the context for evaluating expr
.
|
Class of property for which to evaluate expression. |
|
Expression to evaluate. |
|
Current FoContext. |
|
Current "font-size" value |
|
Current FO |
|
Indication of any error that occurred |
Returns : |
New instance of property_class , or NULL if an
error ocurred.
|
FoDatatype* fo_property_get_value (FoProperty *property);
Returns the current value property value of property
.
|
FoProperty object whose value is to be retrieved. |
Returns : |
The current 'value' property value. |
void fo_property_set_value (FoProperty *property, FoDatatype *new_value);
Sets the 'value' property of property
.
|
FoProperty object whose value is to be set. |
|
New value for the property. |
gboolean fo_property_class_is_inherited (FoPropertyClass *property_class);
Indicates whether the XSL property represented by property_class
is defined in the XSL 1.0 Recommendation as an inherited property.
|
FoPropertyClass or a subclass of FoPropertyClass. |
Returns : |
TRUE if property_class is inherited, FALSE if not.
|
gboolean fo_property_is_inherited (FoProperty *property);
Indicates whether the XSL property represented by property
is
defined in the XSL 1.0 Recommendation as an inherited property.
|
FoProperty or subclass of FoProperty |
Returns : |
TRUE if property is inherited, FALSE otherwise
|
gboolean fo_property_class_is_shorthand (FoPropertyClass *property_class);
Indicates whether the XSL property represented by property_class
is defined in the XSL 1.0 Recommendation as a shorthand property.
|
FoPropertyClass or a subclass of FoPropertyClass. |
Returns : |
TRUE if property_class is a shorthand, FALSE if not.
|
gboolean fo_property_is_shorthand (FoProperty *property);
Indicates whether the XSL property represented by property
is
defined in the XSL 1.0 Recommendation as a shorthand property.
|
FoProperty or a subclass of FoProperty. |
Returns : |
TRUE if property is a shorthand, FALSE otherwise
|
FoDatatype* (*FoResolveEnumFunc) (const gchar *token, FoContext *context, GError **err);
|
|
|
|
|
|
Returns : |
FoDatatype* (*FoResolvePercentFunc) (gdouble percentage, const FoDatatype *font_size, const FoFo *fo_node, const FoContext *context, GError **err);
|
|
|
|
|
|
|
|
|
|
Returns : |