| Top |
| DzlStateMachine * | dzl_state_machine_new () |
| const gchar * | dzl_state_machine_get_state () |
| void | dzl_state_machine_set_state () |
| GAction * | dzl_state_machine_create_action () |
| void | dzl_state_machine_add_property () |
| void | dzl_state_machine_add_property_valist () |
| void | dzl_state_machine_add_propertyv () |
| void | dzl_state_machine_add_binding () |
| void | dzl_state_machine_add_style () |
| void | dzl_state_machine_connect_object () |
const gchar *
dzl_state_machine_get_state (DzlStateMachine *self);
Gets the “state” property. This is the name of the current state of the machine.
void dzl_state_machine_set_state (DzlStateMachine *self,const gchar *state);
Sets the “state” property.
Registered state transformations will be applied during the state transformation.
If the transition results in a cyclic operation, the state will stop at the last state before the cycle was detected.
GAction * dzl_state_machine_create_action (DzlStateMachine *self,const gchar *name);
Creates a new GAction with the name of name
.
Setting the state of this action will toggle the state of the state machine.
You should use g_variant_new_string() or similar to create the state.
void dzl_state_machine_add_property (DzlStateMachine *self,const gchar *state,gpointer object,const gchar *property,...);
void dzl_state_machine_add_property_valist (DzlStateMachine *self,const gchar *state,gpointer object,const gchar *property,va_list var_args);
void dzl_state_machine_add_propertyv (DzlStateMachine *self,const gchar *state,gpointer object,const gchar *property,const GValue *value);
void dzl_state_machine_add_binding (DzlStateMachine *self,const gchar *state,gpointer source_object,const gchar *source_property,gpointer target_object,const gchar *target_property,GBindingFlags flags);
void dzl_state_machine_add_style (DzlStateMachine *self,const gchar *state,GtkWidget *widget,const gchar *style);
void dzl_state_machine_connect_object (DzlStateMachine *self,const gchar *state,gpointer source,const gchar *detailed_signal,GCallback callback,gpointer user_data,GConnectFlags flags);
Connects to the detailed_signal
of source
only when the current
state of the state machine is state
.
[skip]
self |
||
state |
The state the signal connection should exist within |
|
source |
the source object to connect to |
|
detailed_signal |
The detailed signal of |
|
callback |
The callback to execute upon signal emission. |
[scope notified][closure user_data] |
user_data |
The user data for |
|
flags |
signal connection flags. |
“state” property“state” gchar *
The current state of the machine.
Flags: Read / Write
Default value: NULL