mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 19:42:05 +00:00
state: added clutter_state_key_get_property_type
A function to retrieve the type of the value stored in a key, the equivalent already exists for ClutterAnimator.
This commit is contained in:
parent
6d1f697bc4
commit
ec05230b97
@ -1503,6 +1503,28 @@ clutter_state_key_get_target_state_name (const ClutterStateKey *state_key)
|
||||
return state_key->target_state->name;
|
||||
}
|
||||
|
||||
/**
|
||||
* clutter_state_key_get_property_type:
|
||||
* @key: a #ClutterStateKey
|
||||
*
|
||||
* Retrieves the #GType of the property a key applies to
|
||||
*
|
||||
* You can use this type to initialize the #GValue to pass to
|
||||
* clutter_state_key_get_value()
|
||||
*
|
||||
* Return value: the #GType of the property
|
||||
*
|
||||
* Since: 1.4
|
||||
*/
|
||||
GType
|
||||
clutter_state_key_get_property_type (const ClutterStateKey *key)
|
||||
{
|
||||
g_return_val_if_fail (key != NULL, G_TYPE_INVALID);
|
||||
|
||||
return G_VALUE_TYPE (&key->value);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* clutter_state_set_duration:
|
||||
* @state: a #ClutterState
|
||||
|
@ -148,6 +148,7 @@ gdouble clutter_state_key_get_post_delay (const ClutterStat
|
||||
gulong clutter_state_key_get_mode (const ClutterStateKey *state_key);
|
||||
void clutter_state_key_get_value (const ClutterStateKey *state_key,
|
||||
GValue *value);
|
||||
GType clutter_state_key_get_property_type (const ClutterStateKey *key);
|
||||
GObject * clutter_state_key_get_object (const ClutterStateKey *state_key);
|
||||
G_CONST_RETURN gchar *clutter_state_key_get_property_name (const ClutterStateKey *state_key);
|
||||
G_CONST_RETURN gchar *clutter_state_key_get_source_state_name (const ClutterStateKey *state_key);
|
||||
|
@ -2250,6 +2250,8 @@ clutter_align_constraint_get_type
|
||||
ClutterState
|
||||
ClutterStateClass
|
||||
clutter_state_new
|
||||
clutter_state_change
|
||||
clutter_state_get_state
|
||||
clutter_state_set
|
||||
clutter_state_set_key
|
||||
clutter_state_set_duration
|
||||
@ -2260,19 +2262,18 @@ clutter_state_remove_key
|
||||
clutter_state_get_timeline
|
||||
clutter_state_set_animator
|
||||
clutter_state_get_animator
|
||||
clutter_state_get_state
|
||||
clutter_state_change
|
||||
|
||||
<SUBSECTION>
|
||||
ClutterStateKey
|
||||
clutter_state_key_get_pre_delay
|
||||
clutter_state_key_get_post_delay
|
||||
clutter_state_key_get_mode
|
||||
clutter_state_key_get_value
|
||||
clutter_state_key_get_object
|
||||
clutter_state_key_get_property_name
|
||||
clutter_state_key_get_source_state_name
|
||||
clutter_state_key_get_target_state_name
|
||||
clutter_state_key_get_object
|
||||
clutter_state_key_get_property_name
|
||||
clutter_state_key_get_mode
|
||||
clutter_state_key_get_value
|
||||
clutter_state_key_get_property_type
|
||||
clutter_state_key_get_pre_delay
|
||||
clutter_state_key_get_post_delay
|
||||
|
||||
<SUBSECTION Standard>
|
||||
CLUTTER_TYPE_STATE
|
||||
|
Loading…
Reference in New Issue
Block a user