Package ch.bailu.gtk.gtk
Klasse ShortcutAction
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.gobject.Object
ch.bailu.gtk.type.PropertyHolder
ch.bailu.gtk.gtk.ShortcutAction
- Alle implementierten Schnittstellen:
PointerInterface
- Bekannte direkte Unterklassen:
ActivateAction
,CallbackAction
,MnemonicAction
,NamedAction
,NothingAction
,SignalAction
Encodes an action that can be triggered by a keyboard shortcut.
`GtkShortcutActions` contain functions that allow easy presentation
to end users as well as being printed for debugging.
All `GtkShortcutActions` are immutable, you can only specify their
properties during construction. If you want to change a action, you
have to replace it with a new one. If you need to pass arguments to
an action, these are specified by the higher-level `GtkShortcut` object.
To activate a `GtkShortcutAction` manually, [method@Gtk.ShortcutAction.activate]
can be called.
GTK provides various actions:
- [class@Gtk.MnemonicAction]: a shortcut action that calls
gtk_widget_mnemonic_activate()
- [class@Gtk.CallbackAction]: a shortcut action that invokes
a given callback
- [class@Gtk.SignalAction]: a shortcut action that emits a
given signal
- [class@Gtk.ActivateAction]: a shortcut action that calls
gtk_widget_activate()
- [class@Gtk.NamedAction]: a shortcut action that calls
gtk_widget_activate_action()
- [class@Gtk.NothingAction]: a shortcut action that does nothing
`GtkShortcutActions` contain functions that allow easy presentation
to end users as well as being printed for debugging.
All `GtkShortcutActions` are immutable, you can only specify their
properties during construction. If you want to change a action, you
have to replace it with a new one. If you need to pass arguments to
an action, these are specified by the higher-level `GtkShortcut` object.
To activate a `GtkShortcutAction` manually, [method@Gtk.ShortcutAction.activate]
can be called.
GTK provides various actions:
- [class@Gtk.MnemonicAction]: a shortcut action that calls
gtk_widget_mnemonic_activate()
- [class@Gtk.CallbackAction]: a shortcut action that invokes
a given callback
- [class@Gtk.SignalAction]: a shortcut action that emits a
given signal
- [class@Gtk.ActivateAction]: a shortcut action that calls
gtk_widget_activate()
- [class@Gtk.NamedAction]: a shortcut action that calls
gtk_widget_activate_action()
- [class@Gtk.NothingAction]: a shortcut action that does nothing
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen ch.bailu.gtk.gobject.Object
Object.OnBindingTransformFunc, Object.OnDestroyNotify, Object.OnDuplicateFunc, Object.OnNotify, Object.OnToggleNotify, Object.OnWeakNotify
-
Feldübersicht
Von Klasse geerbte Felder ch.bailu.gtk.gobject.Object
SIGNAL_ON_NOTIFY
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungboolean
Activates the action on the @widget with the given @args.static ClassHandler
static int
static long
static TypeSystem.TypeSize
static long
static TypeSystem.TypeSize
static ShortcutAction
parseStringShortcutAction
(Str string) Tries to parse the given string into an action.static ShortcutAction
parseStringShortcutAction
(String string) Tries to parse the given string into an action.void
Prints the given action into a string for the developer.toStr()
Prints the given action into a human-readable string.Von Klasse geerbte Methoden ch.bailu.gtk.type.PropertyHolder
getBooleanProperty, getIntProperty, getObjectProperty, getStringProperty, getStrProperty, setBooleanProperty, setIntProperty, setObjectProperty, setStringProperty, setStrProperty
Von Klasse geerbte Methoden ch.bailu.gtk.gobject.Object
addToggleRef, bindProperty, bindProperty, bindPropertyFull, bindPropertyFull, bindPropertyWithClosures, bindPropertyWithClosures, compatControl, connect, connect, disconnect, disconnect, dupData, dupData, dupQdata, forceFloating, freezeNotify, get, get, getData, getData, getProperty, getProperty, getQdata, interfaceFindProperty, interfaceInstallProperty, isFloating, notify, notify, notifyByPspec, onNotify, ref, refSink, removeToggleRef, replaceData, replaceData, replaceQdata, runDispose, set, set, setData, setData, setDataFull, setDataFull, setProperty, setProperty, setQdata, setQdataFull, stealData, stealData, stealQdata, takeRef, thawNotify, unref, watchClosure, weakRef, weakUnref
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
-
Konstruktordetails
-
ShortcutAction
-
-
Methodendetails
-
getClassHandler
-
parseStringShortcutAction
Tries to parse the given string into an action.
On success, the parsed action is returned. When parsing
failed, %NULL is returned.
The accepted strings are:
- `nothing`, for `GtkNothingAction`
- `activate`, for `GtkActivateAction`
- `mnemonic-activate`, for `GtkMnemonicAction`
- `action(NAME)`, for a `GtkNamedAction` for the action named `NAME`
- `signal(NAME)`, for a `GtkSignalAction` for the signal `NAME`- Parameter:
string
- the string to parse- Gibt zurück:
- a new `GtkShortcutAction`
-
parseStringShortcutAction
Tries to parse the given string into an action.
On success, the parsed action is returned. When parsing
failed, %NULL is returned.
The accepted strings are:
- `nothing`, for `GtkNothingAction`
- `activate`, for `GtkActivateAction`
- `mnemonic-activate`, for `GtkMnemonicAction`
- `action(NAME)`, for a `GtkNamedAction` for the action named `NAME`
- `signal(NAME)`, for a `GtkSignalAction` for the signal `NAME`- Parameter:
string
- the string to parse- Gibt zurück:
- a new `GtkShortcutAction`
-
activate
Activates the action on the @widget with the given @args.
Note that some actions ignore the passed in @flags, @widget or @args.
Activation of an action can fail for various reasons. If the action
is not supported by the @widget, if the @args don't match the action
or if the activation otherwise had no effect, %FALSE will be returned.- Parameter:
flags
- flags to activate withwidget
- Target of the activationargs
- arguments to pass- Gibt zurück:
- %TRUE if this action was activated successfully
-
print
Prints the given action into a string for the developer.
This is meant for debugging and logging.
The form of the representation may change at any time and is
not guaranteed to stay identical.- Parameter:
string
- a `GString` to print into
-
toStr
Prints the given action into a human-readable string.
This is a small wrapper around [method@Gtk.ShortcutAction.print]
to help when debugging.- Gibt zurück:
- a new string
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-