ActionEntry

class ActionEntry(pointer: <Error class: unknown class><<Error class: unknown class>>)

This struct defines a single action. It is for use with g_action_map_add_action_entries().

The order of the items in the structure are intended to reflect frequency of use. It is permissible to use an incomplete initialiser in order to leave some of the later values as null. All values after @name are optional. Additional optional fields may be added in the future.

See g_action_map_add_action_entries() for an example.

Skipped during bindings generation

  • field activate: Fields with callbacks are not supported

  • field change_state: Fields with callbacks are not supported

  • field padding: Record field padding is private

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val gioActionEntryPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
val name: String?

the name of the action

Link copied to clipboard

the type of the parameter that must be passed to the activate function for this action, given as a single GVariant type string (or null for no parameter)

Link copied to clipboard

the initial state for this action, given in gvariant-text. The state is parsed with no extra type information, so type tags must be added to the string if they are necessary. Stateless actions should give null here.