SimpleAction.stateful


Description:

[ CCode ( has_construct_function = false ) ]
[ Version ( since = "2.28" ) ]
public SimpleAction.stateful (string name, VariantType? parameter_type, Variant state)

Creates a new stateful action.

All future state values must have the same VariantType as the initial state .

If the state Variant is floating, it is consumed.

Parameters:

name

the name of the action

parameter_type

the type of the parameter that will be passed to handlers for the activate signal, or null for no parameter

state

the initial state of the action

Returns:

a new SimpleAction