Package ch.bailu.gtk.gio
Klasse ActionEntry
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.type.Record
ch.bailu.gtk.gio.ActionEntry
- Alle implementierten Schnittstellen:
PointerInterface
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.
[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.
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic interface
static interface
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic final String
the callback to connect to the "activate" signal of the action.static final String
the callback to connect to the "change-state" signal of the
action.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-format.html). -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic ClassHandler
ch.bailu.gtk.gio.JnaActionEntry.OnActivate
the callback to connect to the "activate" signal of the action.ch.bailu.gtk.gio.JnaActionEntry.OnChangeState
the callback to connect to the "change-state" signal of the
action.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-format.html).void
setFieldActivate
(ActionEntry.OnActivate activate) the callback to connect to the "activate" signal of the action.void
setFieldChangeState
(ActionEntry.OnChangeState change_state) the callback to connect to the "change-state" signal of the
action.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-format.html).Von Klasse geerbte Methoden ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacks
Von Klasse geerbte Methoden ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Von Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Von Schnittstelle geerbte Methoden ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Felddetails
-
NAME
the name of the action- Siehe auch:
-
ACTIVATE
the callback to connect to the "activate" signal of the action.
Since GLib 2.40, this can be `NULL` for stateful actions, in which case
the default handler is used. For boolean-stated actions with no
parameter, this is a toggle. For other state types (and parameter type
equal to the state type) this will be a function that just calls
@change_state (which you should provide).
SeeActionEntry.OnActivate.onActivate(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gio.SimpleAction, ch.bailu.gtk.glib.Variant, ch.bailu.gtk.type.Pointer)
- Siehe auch:
-
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)- Siehe auch:
-
STATE
the initial state for this action, given in
[GVariant text format](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.- Siehe auch:
-
CHANGE_STATE
the callback to connect to the "change-state" signal of the
action. All stateful actions should provide a handler here; stateless
actions should not.
SeeActionEntry.OnChangeState.onChangeState(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gio.SimpleAction, ch.bailu.gtk.glib.Variant, ch.bailu.gtk.type.Pointer)
- Siehe auch:
-
-
Konstruktordetails
-
ActionEntry
-
-
Methodendetails
-
getClassHandler
-
setFieldName
the name of the action -
getFieldName
the name of the action -
setFieldActivate
the callback to connect to the "activate" signal of the action.
Since GLib 2.40, this can be `NULL` for stateful actions, in which case
the default handler is used. For boolean-stated actions with no
parameter, this is a toggle. For other state types (and parameter type
equal to the state type) this will be a function that just calls
@change_state (which you should provide).
SeeActionEntry.OnActivate.onActivate(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gio.SimpleAction, ch.bailu.gtk.glib.Variant, ch.bailu.gtk.type.Pointer)
-
getFieldActivate
public ch.bailu.gtk.gio.JnaActionEntry.OnActivate getFieldActivate()the callback to connect to the "activate" signal of the action.
Since GLib 2.40, this can be `NULL` for stateful actions, in which case
the default handler is used. For boolean-stated actions with no
parameter, this is a toggle. For other state types (and parameter type
equal to the state type) this will be a function that just calls
@change_state (which you should provide).
SeeActionEntry.OnActivate.onActivate(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gio.SimpleAction, ch.bailu.gtk.glib.Variant, ch.bailu.gtk.type.Pointer)
-
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-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. -
getFieldState
the initial state for this action, given in
[GVariant text format](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. -
setFieldChangeState
the callback to connect to the "change-state" signal of the
action. All stateful actions should provide a handler here; stateless
actions should not.
SeeActionEntry.OnChangeState.onChangeState(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gio.SimpleAction, ch.bailu.gtk.glib.Variant, ch.bailu.gtk.type.Pointer)
-
getFieldChangeState
public ch.bailu.gtk.gio.JnaActionEntry.OnChangeState getFieldChangeState()the callback to connect to the "change-state" signal of the
action. All stateful actions should provide a handler here; stateless
actions should not.
SeeActionEntry.OnChangeState.onChangeState(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gio.SimpleAction, ch.bailu.gtk.glib.Variant, ch.bailu.gtk.type.Pointer)
-