Package ch.bailu.gtk.gio
Class ActionEntry
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.type.Record
ch.bailu.gtk.gio.ActionEntry
- All Implemented Interfaces:
PointerInterface
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.
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interface -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringthe name of the actionstatic final Stringthe 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)static final Stringthe initial state for this action, given in
[GVariant text format][gvariant-text]. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ClassHandlerch.bailu.gtk.gio.JnaActionEntry.OnActivatech.bailu.gtk.gio.JnaActionEntry.OnChangeStatethe name of the actionthe 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)the initial state for this action, given in
[GVariant text format][gvariant-text].voidsetFieldActivate(ActionEntry.OnActivate activate) voidsetFieldChangeState(ActionEntry.OnChangeState change_state) voidsetFieldName(Str name) the name of the actionvoidsetFieldParameterType(Str parameter_type) 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)voidsetFieldState(Str state) the initial state for this action, given in
[GVariant text format][gvariant-text].Methods inherited from class ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacksMethods inherited from class ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNullMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Field Details
-
NAME
the name of the action- See Also:
-
ACTIVATE
- See Also:
-
PARAMETER_TYPE
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)- See Also:
-
STATE
the initial state for this action, given in
[GVariant text format][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.- See Also:
-
CHANGE_STATE
- See Also:
-
-
Constructor Details
-
ActionEntry
-
-
Method Details
-
getClassHandler
-
setFieldName
the name of the action -
getFieldName
the name of the action -
setFieldActivate
-
getFieldActivate
public ch.bailu.gtk.gio.JnaActionEntry.OnActivate getFieldActivate() -
setFieldParameterType
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) -
getFieldParameterType
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) -
setFieldState
the initial state for this action, given in
[GVariant text format][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. -
getFieldState
the initial state for this action, given in
[GVariant text format][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. -
setFieldChangeState
-
getFieldChangeState
public ch.bailu.gtk.gio.JnaActionEntry.OnChangeState getFieldChangeState()
-