ActionEntry

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

This struct defines a single action. It is for use with method@Gio.ActionMap.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 method@Gio.ActionMap.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-format.html. 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.