State
Object Hierarchy:
Clutter.State
Clutter.State
Clutter.State
GLib.Object
GLib.Object
GLib.Object->Clutter.State
Clutter.Scriptable
Clutter.Scriptable
Clutter.Scriptable->Clutter.State
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
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref
All known members inherited from interface Clutter.Scriptable