Top | ![]() |
![]() |
![]() |
![]() |
GXmlSerializableValueListGXmlSerializableValueList — Represent any value as string but a list of options by default to select from. property to be added as a GXmlAttribute to a GXmlElement. |
GeeList * | gxml_serializable_value_list_get_values () |
void | gxml_serializable_value_list_add_values () |
gchar * | gxml_serializable_value_list_get_value_at () |
void | gxml_serializable_value_list_select_value_at () |
gchar ** | gxml_serializable_value_list_get_values_array () |
gboolean | gxml_serializable_value_list_is_value () |
gchar * | gxml_serializable_value_list_to_string () |
GXmlSerializableValueList * | gxml_serializable_value_list_new () |
#define | GXML_TYPE_SERIALIZABLE_VALUE_LIST |
struct | GXmlSerializableValueList |
struct | GXmlSerializableValueListClass |
All values are stored in an array to get access to it by its position using gxml_serializable_value_list_get_value_at()
.
Is recommended to initilize your list from a fixed array to avoid to have a list for each object in memory, do it by initialize the internal variable GXml.SerializableValueList._vals, at construct {} clause to point a fixed array of strings.
GeeList *
gxml_serializable_value_list_get_values
(GXmlSerializableValueList *self
);
Return a GeeList with all possible selection strings.
If no values where defined at construction time and no values have been added, then this will return an empty list.
void gxml_serializable_value_list_add_values (GXmlSerializableValueList *self
,gchar **vals
,int vals_length1
);
Add a list of string values to select from.
This values are added to the ones already defined at construct time.s
gchar * gxml_serializable_value_list_get_value_at (GXmlSerializableValueList *self
,gint index
);
Get the string value at a given index. This operation does not change the actual value.
void gxml_serializable_value_list_select_value_at (GXmlSerializableValueList *self
,gint index
);
Sets actual value to the one at a given position.
gchar ** gxml_serializable_value_list_get_values_array (GXmlSerializableValueList *self
,int *result_length1
);
Get an array of string values in list.
If no values were defined at construction time and no values were added this return null
gboolean
gxml_serializable_value_list_is_value (GXmlSerializableValueList *self
);
Checks if the actual value is in the values list.
gchar *
gxml_serializable_value_list_to_string
(GXmlSerializableValueList *self
);
GXmlSerializableValueList *
gxml_serializable_value_list_new (void
);
#define GXML_TYPE_SERIALIZABLE_VALUE_LIST (gxml_serializable_value_list_get_type ())
The type for GXmlSerializableValueList.
struct GXmlSerializableValueList { GObject parent_instance; GXmlSerializableValueListPrivate * priv; gchar** _vals; gint _vals_length1; GeeArrayList* extra; };
Represent any value as string but a list of options by default to select from. property to be added as a GXmlAttribute to a GXmlElement.
All values are stored in an array to get access to it by its position using gxml_serializable_value_list_get_value_at()
.
Is recommended to initilize your list from a fixed array to avoid to have a list for each object in memory, do it by initialize the internal variable GXml.SerializableValueList._vals, at construct {} clause to point a fixed array of strings.
struct GXmlSerializableValueListClass { GObjectClass parent_class; GeeList* (*get_values) (GXmlSerializableValueList* self); void (*add_values) (GXmlSerializableValueList* self, gchar** vals, int vals_length1); gchar* (*get_value_at) (GXmlSerializableValueList* self, gint index); void (*select_value_at) (GXmlSerializableValueList* self, gint index); gchar** (*get_values_array) (GXmlSerializableValueList* self, int* result_length1); gboolean (*is_value) (GXmlSerializableValueList* self); };
The class structure for GXML_TYPE_SERIALIZABLE_VALUE_LIST
. All the fields in this structure are private and should never be accessed directly.
virtual method called by |
||
virtual method called by |
||
virtual method called by |
||
virtual method called by |
||
virtual method called by |
||
virtual method called by |