SimpleAction.this

Creates a new stateful action. state is the initial state of the action. All future state values must have the same GVariantType as the initial state. If the state GVariant is floating, it is consumed. Since 2.28

  1. this(GSimpleAction* gSimpleAction)
  2. this(string name, VariantType parameterType)
  3. this(string name, VariantType parameterType, Variant state)
    class SimpleAction

Parameters

name string

the name of the action

parameterType VariantType

the type of the parameter to the activate function. [allow-none]

state Variant

the initial state of the action

Throws

ConstructionException GTK+ fails to create the object.

Meta