State
Object Hierarchy:
Description:
[
CCode ( type_id =
"clutter_state_get_type ()" ) ]
[
Version ( since =
"1.4" ) ]
public class State :
Object,
Scriptable
The State structure contains only private data and should be accessed using the provided API
Content:
Properties:
Creation methods:
- public State ()
Creates a new State
Methods:
- public unowned Animator get_animator (string source_state_name, string target_state_name)
Retrieves the Animator
that is being used for transitioning between the two states, if any has been set
- public uint get_duration (string? source_state_name, string? target_state_name)
Queries the duration used for transitions between a source and target
state pair
- public List<unowned StateKey> get_keys (string? source_state_name, string? target_state_name, Object? object, string? property_name)
Returns a list of pointers to opaque structures with accessor
functions that describe the keys added to an animator.
- public unowned string get_state ()
Queries the currently set target state.
- public List<unowned string> get_states ()
Gets a list of all the state names managed by this
State.
- public unowned Timeline get_timeline ()
Gets the timeline driving the State
- public void remove_key (string? source_state_name, string? target_state_name, Object? object, string? property_name)
Removes all keys matching the search criteria passed in arguments.
- public void set_animator (string source_state_name, string target_state_name, Animator? animator)
Specifies a Animator
to be used when transitioning between the two named states.
- public void set_duration (string? source_state_name, string? target_state_name, uint duration)
Sets the duration of a transition.
- public unowned State set_key (string? source_state_name, string target_state_name, Object object, string property_name, uint mode, Value value, double pre_delay, double post_delay)
Sets one specific end key for a state name, object,
property_name combination.
- public unowned Timeline set_state (string target_state_name)
Change the current state of State to
target_state_name.
- public unowned Timeline warp_to_state (string target_state_name)
Change to the specified target state immediately with no animation.
Signals:
Inherited Members:
All known members inherited from class GLib.Object
All known members inherited from interface Clutter.Scriptable