Class
GrlData
Instance methods
grl_data_add_for_id
Appends the value associated with key_name
to data
. This key_name
is used to create
a new GParamSpec
instance, which is further used to create and register a key using grl_registry_register_metadata_key().
since: 0.3.6
grl_data_get_binary
Returns the first binary value associated with key
from data
. If key
has
no first value, or value is not a gfloat, or key
is not in data, then NULL
is returned.
since: 0.1.9
grl_data_get_boxed
Returns the first boxed value associated with key
from data
. If key
has
no first value, that value is not of a boxed type, or key
is not in data
,
then NULL
is returned.
since: 0.2.0
grl_data_get_float
Returns the first float value associated with key
from data
. If key
has no
first value, or value is not a gfloat, or key
is not in data, then 0 is returned.
since: 0.1.5
grl_data_get_int
Returns the first int value associated with key
from data
. If key
has no
first value, or value is not a gint, or key
is not in data, then 0 is returned.
since: 0.1.4
grl_data_get_int64
Returns the first int64 value associated with key
from data
. If key
has no
first value, or value is not a gint, or key
is not in data, then 0 is returned.
since: 0.2.12
grl_data_get_related_keys
Returns a set containing the values for key
and related keys at position
index
from data
.
since: 0.1.10
grl_data_get_single_values_for_key
Returns all non-NULL
values for key
from data
. This ignores related keys.
since: 0.1.13
grl_data_get_single_values_for_key_string
Returns all non-NULL
values for key
from data
. key
must have been
registered as a string-type key. This ignores related keys.
since: 0.1.13
grl_data_get_string
Returns the first string value associated with key
from data
. If key
has
no first value, or value is not string, or key
is not in data
, then NULL
is returned.
since: 0.1.4
grl_data_length
Returns how many values key
or related keys have in data
: if key
has no
value, but a related key has, then it is counted as positive.
since: 0.1.10
grl_data_remove
Removes the first value for key
from data
. If there are other keys related
to key
their values will also be removed from data
.
since: 0.1.4
grl_data_remove_nth
Removes the value at position index
for key
from data
. If there are other
keys related to key
, their values at position index
will also be removed
from data
.
since: 0.1.10
grl_data_set
Sets the first value associated with key
in data
. If key already has a
value old value is freed and the new one is set.
since: 0.1.4
grl_data_set_binary
Sets the first binary value associated with key
in data
. If key
already
has a first value old value is replaced by the new one.
since: 0.1.9
grl_data_set_boolean
Sets the first boolean value associated with key
in data
. If key
already
has a first value, old value is replaced by the new one.
since: 0.2.3
grl_data_set_boxed
Sets the first boxed value associated with key
in data
. If key
already
has a value, the old value is freed and the new one is set.
since: 0.2.0
grl_data_set_float
Sets the first float value associated with key
in data
. If key
already has
a first value old value is replaced by the new one.
since: 0.1.5
grl_data_set_for_id
Sets the first value associated with key_name
in data
. This key_name
is used to create
a new GParamSpec
instance, which is further used to create and register a key using
grl_registry_register_metadata_key(). If key_name
already has a first value
, old
value is replaced by the new one.
since: 0.3.6
grl_data_set_int
Sets the first int value associated with key
in data
. If key
already has a
first value old value is replaced by the new one.
since: 0.1.4
grl_data_set_int64
Sets the first int64 value associated with key
in data
. If key
already has a
first value old value is replaced by the new one.
since: 0.2.12
grl_data_set_related_keys
Updates the values at position index
in data
with values in relkeys
.
since: 0.1.10
grl_data_set_string
Sets the first string value associated with key
in data
. If key
already
has a value old value is freed and the new one is set.
since: 0.1.4
Signals
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.