GObject.Object
Clutter.State
Import line: | Clutter = imports.gi.Clutter; |
GIR File: | Clutter-1.0.gir |
C documentation: | ClutterState |
Class : | State |
Implements: | Clutter.Scriptable |
Extends: | GObject.Object |
Properties | Defined By | |
---|---|---|
duration : guint32
Default duration used if an duration has not been specified for a specific
source/target state pair. Default duration used if an duration has not been specified for a specific
source/target state pair. The values is in milliseconds. |
Clutter.State | |
parent : GObject.Object
read only
|
Clutter.State | |
priv : Clutter.StatePrivate
read only
|
Clutter.State | |
state : String
The currently set target state, setting it causes the
state machine to transition to the new state, use clutter_state_change() with a final FALSE argument to change state without a transition. The currently set target state, setting it causes the
state machine to transition to the new state, use clutter_state_change() with a final FALSE argument to change state without a transition. |
Clutter.State |
Method / Constructor | Defined By | |
---|---|---|
new Clutter.State
(Object properties)
Create a new Clutter.State
Create a new Clutter.State
|
||
Retrieves the ClutterAnimator that is being used for transitioning
between the two states, if any has been set
Retrieves the ClutterAnimator that is being used for transitioning
between the two states, if any has been set
|
Clutter.State | |
Queries the duration used for transitions between a source and
target state pair The semantics for the query are the same as the semantics used for setting the duration with clutter_state_set_duration()
Queries the duration used for transitions between a source and
target state pair The semantics for the query are the same as the semantics used for setting the duration with clutter_state_set_duration()
|
Clutter.State | |
get_id
()
:
String
Retrieves the id of scriptable set using clutter_scriptable_set_id().
Retrieves the id of scriptable set using clutter_scriptable_set_id().
the scriptable object and should never be modified of freed
|
Clutter.Scriptable | |
get_keys
(String source_state_name, String target_state_name, Object object, String property_name)
:
Array
Returns a list of pointers to opaque structures with accessor functions
that describe the keys added to an animator.
Returns a list of pointers to opaque structures with accessor functions
that describe the keys added to an animator. newly allocated GList of ClutterStateKeys. The contents of the returned list are owned by the ClutterState and should not be modified or freed. Use g_list_free() to free the resources allocated by the returned list when done using it
|
Clutter.State | |
get_state
()
:
String
Queries the currently set target state.
Queries the currently set target state.
During a transition this function will return the target of the transition. This function is useful when called from handlers of the ClutterState::completed signal. is owned by the ClutterState and should not be modified or freed
|
Clutter.State | |
get_states
()
:
Array
Gets a list of all the state names managed by this ClutterState.
Gets a list of all the state names managed by this ClutterState.
GList of state names. The contents of the returned GList are owned by the ClutterState and should not be modified or freed. Use g_list_free() to free the resources allocated by the returned list when done using it
|
Clutter.State | |
get_timeline
()
:
Clutter.Timeline
Gets the timeline driving the ClutterState
the state change animations.
Gets the timeline driving the ClutterState
the state change animations. The returned timeline is owned by the ClutterState and it should not be unreferenced directly
|
Clutter.State | |
Parses the passed JSON node.
Parses the passed JSON node. The implementation must set the type
of the passed GValue pointer using g_value_init().
|
Clutter.Scriptable | |
remove_key
(String source_state_name, String target_state_name, Object object, String property_name)
:
none
Removes all keys matching the search criteria passed in arguments.
Removes all keys matching the search criteria passed in arguments.
|
Clutter.State | |
Specifies a ClutterAnimator to be used when transitioning between
the two named states.
Specifies a ClutterAnimator to be used when transitioning between
the two named states. The animator allows specifying a transition between the state that is more elaborate than the basic transitions other allowed by the simple tweening of properties defined in the ClutterState keys. If animator is NULL it will unset an existing animator. ClutterState will take a reference on the passed animator, if any
|
Clutter.State | |
Overrides the common properties setting.
Overrides the common properties setting. The underlying virtual
function should be used when implementing custom properties.
|
Clutter.Scriptable | |
Sets the duration of a transition.
Sets the duration of a transition.
If both state names are NULL the default duration for state is set. If only target_state_name is specified, the passed duration becomes the default duration for transitions to the target state. If both states names are specified, the passed duration only applies to the specified transition.
|
Clutter.State | |
set_id
(String id_)
:
none
Sets id as the unique Clutter script it for this instance of
ClutterScriptableIface.
Sets id as the unique Clutter script it for this instance of
ClutterScriptableIface. This name can be used by user interface designer applications to define a unique name for an object constructable using the UI definition language parsed by ClutterScript.
|
Clutter.Scriptable | |
set_key
(String source_state_name, String target_state_name, Object object, String property_name, guint32 mode, Value value, gdouble pre_delay, gdouble post_delay)
:
Clutter.State
Sets one specific end key for a state_name, object, property_name
combination.
Sets one specific end key for a state_name, object, property_name
combination. multiple calls
|
Clutter.State | |
set_state
(String target_state_name)
:
Clutter.Timeline
Change the current state of ClutterState to target_state_name
The state will animate during its transition, see clutter_state_warp_to_state for animation-free state switching.
Change the current state of ClutterState to target_state_name
The state will animate during its transition, see clutter_state_warp_to_state for animation-free state switching.
|
Clutter.State | |
warp_to_state
(String target_state_name)
:
Clutter.Timeline
Change the current state of ClutterState to target_state_name
Change to the specified target state immediately with no animation.
Change the current state of ClutterState to target_state_name
Change to the specified target state immediately with no animation.
|
Clutter.State |
Event | Defined By | |
---|---|---|
completed (State self)
:
none
The ::completed signal is emitted when a ClutterState reaches
the target state specified by clutter_state_change()
The ::completed signal is emitted when a ClutterState reaches
the target state specified by clutter_state_change()
|
Clutter.State |