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
Modifier and TypeClassDescriptionstatic interface
static interface
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
the name of the actionstatic final String
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)static final String
the initial state for this action, given in
[GVariant text format][gvariant-text]. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ClassHandler
ch.bailu.gtk.gio.JnaActionEntry.OnActivate
ch.bailu.gtk.gio.JnaActionEntry.OnChangeState
the 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].void
setFieldActivate
(ActionEntry.OnActivate activate) void
setFieldChangeState
(ActionEntry.OnChangeState change_state) void
setFieldName
(Str name) the name of the actionvoid
setFieldParameterType
(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)void
setFieldState
(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, unregisterCallbacks
Methods inherited from class ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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()
-