Package ch.bailu.gtk.glib
Interface MarkupCollectType
public interface MarkupCollectType
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
expects a parameter of type (gboolean *)
and parses the attribute value as a boolean.static final int
used to terminate the list of attributes
to collectstatic final int
can be bitwise ORed with the other fields.static final int
as with %G_MARKUP_COLLECT_STRING, but
expects a parameter of type (char **) and g_strdup()s the
returned pointer.static final int
collect the string pointer directly from
the attribute_values[] array.static final int
as with %G_MARKUP_COLLECT_BOOLEAN, but
in the case of a missing attribute a value is set that compares
equal to neither %FALSE nor %TRUE G_MARKUP_COLLECT_OPTIONAL is
implied
-
Field Details
-
INVALID
static final int INVALIDused to terminate the list of attributes
to collect- See Also:
-
STRING
static final int STRINGcollect the string pointer directly from
the attribute_values[] array. Expects a parameter of type (const
char **). If %G_MARKUP_COLLECT_OPTIONAL is specified and the
attribute isn't present then the pointer will be set to %NULL- See Also:
-
STRDUP
static final int STRDUPas with %G_MARKUP_COLLECT_STRING, but
expects a parameter of type (char **) and g_strdup()s the
returned pointer. The pointer must be freed with g_free()- See Also:
-
BOOLEAN
static final int BOOLEANexpects a parameter of type (gboolean *)
and parses the attribute value as a boolean. Sets %FALSE if the
attribute isn't present. Valid boolean values consist of
(case-insensitive) "false", "f", "no", "n", "0" and "true", "t",
"yes", "y", "1"- See Also:
-
TRISTATE
static final int TRISTATEas with %G_MARKUP_COLLECT_BOOLEAN, but
in the case of a missing attribute a value is set that compares
equal to neither %FALSE nor %TRUE G_MARKUP_COLLECT_OPTIONAL is
implied- See Also:
-
OPTIONAL
static final int OPTIONALcan be bitwise ORed with the other fields.
If present, allows the attribute not to appear. A default value
is set depending on what value type is used- See Also:
-