Packages
clutter-1.0
Clutter
State
duration
state
State
get_animator
get_duration
get_keys
get_state
get_states
get_timeline
remove_key
set_animator
set_duration
set_key
set_state
warp_to_state
completed
Stays crunchy ...
... even in milk.
Valadoc
Vala
Tutorial
Vala Journal
API-References
Markup
About
State
Object Hierarchy:
Description:
public
class
State
:
Object
,
Scriptable
The
State
structure contains only private data
Namespace:
Clutter
Package:
clutter-1.0
Content:
Properties:
public
uint
duration
{
set
;
get
; }
Default duration used if an duration has not been specified for a specific source/target state pair.
public
string
state
{
set
;
owned
get
; }
The currently set target state, setting it causes the state machine to transition to the new state, use
warp_to_state
to change state without a transition.
Creation methods:
public
State
()
Creates a new
State
Methods:
public
weak
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
weak
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
weak
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
weak
Timeline
set_state
(
string
target_state_name)
Change the current state of
State
to
target_state_name
.
public
weak
Timeline
warp_to_state
(
string
target_state_name)
Change to the specified target state immediately with no animation.
Signals:
public
virtual
signal
void
completed
()
The
completed
signal is emitted when a
State
reaches the target state specified by
set_state
or
warp_to_state
.
Inherited Members:
All known members inherited from class GLib.Object
@new
newv
new_valist
get_type
get_class
@ref
unref
ref_sink
weak_ref
weak_unref
add_weak_pointer
remove_weak_pointer
@get
@set
get_property
set_property
get_data
set_data
set_data_full
steal_data
get_qdata
set_qdata
set_qdata_full
steal_qdata
freeze_notify
thaw_notify
dispose
constructed
notify_property
connect
disconnect
add_toggle_ref
remove_toggle_ref
bind_property
notify
ref_count
All known members inherited from interface Clutter.Scriptable
get_id
parse_custom_node
set_custom_property
set_id