Package ch.bailu.gtk.gtk
Class AlternativeTrigger
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.gobject.Object
ch.bailu.gtk.gtk.ShortcutTrigger
ch.bailu.gtk.gtk.AlternativeTrigger
- All Implemented Interfaces:
PointerInterface
A `GtkShortcutTrigger` that combines two triggers.
The `GtkAlternativeTrigger` triggers when either of two trigger.
This can be cascaded to combine more than two triggers.
The `GtkAlternativeTrigger` triggers when either of two trigger.
This can be cascaded to combine more than two triggers.
-
Nested Class Summary
Nested classes/interfaces inherited from class ch.bailu.gtk.gobject.Object
Object.OnBindingTransformFunc, Object.OnDestroyNotify, Object.OnDuplicateFunc, Object.OnNotify, Object.OnToggleNotify, Object.OnWeakNotify -
Field Summary
Fields inherited from class ch.bailu.gtk.gobject.Object
SIGNAL_ON_NOTIFY -
Constructor Summary
ConstructorsConstructorDescriptionAlternativeTrigger(ShortcutTrigger first, ShortcutTrigger second) Creates a `GtkShortcutTrigger` that will trigger whenever
either of the two given triggers gets triggered.AlternativeTrigger(PointerContainer pointer) -
Method Summary
Modifier and TypeMethodDescriptionstatic ClassHandlergetFirst()Gets the first of the two alternative triggers that may
trigger @self.static intstatic longstatic TypeSystem.TypeSizeGets the second of the two alternative triggers that may
trigger @self.static longstatic TypeSystem.TypeSizeMethods inherited from class ch.bailu.gtk.gtk.ShortcutTrigger
compare, equal, hash, parseStringShortcutTrigger, parseStringShortcutTrigger, print, printLabel, toLabel, toStr, triggerMethods inherited from class 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, weakUnrefMethods 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
-
Constructor Details
-
AlternativeTrigger
-
AlternativeTrigger
Creates a `GtkShortcutTrigger` that will trigger whenever
either of the two given triggers gets triggered.
Note that nesting is allowed, so if you want more than two
alternative, create a new alternative trigger for each option.- Parameters:
first- The first trigger that may triggersecond- The second trigger that may trigger
-
-
Method Details
-
getClassHandler
-
getFirst
Gets the first of the two alternative triggers that may
trigger @self.
[method@Gtk.AlternativeTrigger.get_second] will return
the other one.- Returns:
- the first alternative trigger
-
getSecond
Gets the second of the two alternative triggers that may
trigger @self.
[method@Gtk.AlternativeTrigger.get_first] will return
the other one.- Returns:
- the second alternative trigger
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-