Package ch.bailu.gtk.gtk
Klasse EventController
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.EventController
- Alle implementierten Schnittstellen:
PointerInterface
- Bekannte direkte Unterklassen:
DropControllerMotion,DropTarget,DropTargetAsync,EventControllerFocus,EventControllerKey,EventControllerLegacy,EventControllerMotion,EventControllerScroll,Gesture,PadController,ShortcutController
The base class for event controllers.
These are ancillary objects associated to widgets, which react
to `GdkEvents`, and possibly trigger actions as a consequence.
Event controllers are added to a widget with
[method@Gtk.Widget.add_controller]. It is rarely necessary to
explicitly remove a controller with [method@Gtk.Widget.remove_controller].
See the chapter on [input handling](input-handling.html) for
an overview of the basic concepts, such as the capture and bubble
phases of event propagation.
These are ancillary objects associated to widgets, which react
to `GdkEvents`, and possibly trigger actions as a consequence.
Event controllers are added to a widget with
[method@Gtk.Widget.add_controller]. It is rarely necessary to
explicitly remove a controller with [method@Gtk.Widget.remove_controller].
See the chapter on [input handling](input-handling.html) for
an overview of the basic concepts, such as the capture and bubble
phases of event propagation.
-
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 TypMethodeBeschreibungstatic ClassHandlerReturns the event that is currently being handled by the controller.Returns the device of the event that is currently being
handled by the controller.intReturns the modifier state of the event that is currently being
handled by the controller.intReturns the timestamp of the event that is currently being
handled by the controller.static intgetName()Gets the name of @controller.static longstatic TypeSystem.TypeSizeintGets the propagation limit of the event controller.intGets the propagation phase at which @controller handles events.static longstatic TypeSystem.TypeSizeReturns the `GtkWidget` this controller relates to.voidreset()Resets the @controller to a clean state.voidSets a name on the controller that can be used for debugging.voidSets a name on the controller that can be used for debugging.voidsetPropagationLimit(int limit) Sets the event propagation limit on the event controller.voidsetPropagationPhase(int phase) Sets the propagation phase at which a controller handles events.voidsetStaticName(Str name) Sets a name on the controller that can be used for debugging.voidsetStaticName(String name) Sets a name on the controller that can be used for debugging.Von Klasse geerbte Methoden ch.bailu.gtk.type.PropertyHolder
getBooleanProperty, getIntProperty, getObjectProperty, getStringProperty, getStrProperty, setBooleanProperty, setIntProperty, setObjectProperty, setStringProperty, setStrPropertyVon 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, weakUnrefVon Klasse geerbte Methoden ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacksVon Klasse geerbte Methoden ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNullVon Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitVon Schnittstelle geerbte Methoden ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Konstruktordetails
-
EventController
-
-
Methodendetails
-
getClassHandler
-
getCurrentEvent
Returns the event that is currently being handled by the controller.
At other times, %NULL is returned.- Gibt zurück:
- the event that is currently handled by @controller
-
getCurrentEventDevice
Returns the device of the event that is currently being
handled by the controller.
At other times, %NULL is returned.- Gibt zurück:
- device of the event is currently handled by @controller
-
getCurrentEventState
public int getCurrentEventState()Returns the modifier state of the event that is currently being
handled by the controller.
At other times, 0 is returned.- Gibt zurück:
- modifier state of the event is currently handled by @controller
-
getCurrentEventTime
public int getCurrentEventTime()Returns the timestamp of the event that is currently being
handled by the controller.
At other times, 0 is returned.- Gibt zurück:
- timestamp of the event is currently handled by @controller
-
getName
Gets the name of @controller.- Gibt zurück:
- The controller name
-
getPropagationLimit
public int getPropagationLimit()Gets the propagation limit of the event controller.- Gibt zurück:
- the propagation limit
-
getPropagationPhase
public int getPropagationPhase()Gets the propagation phase at which @controller handles events.- Gibt zurück:
- the propagation phase
-
getWidget
Returns the `GtkWidget` this controller relates to.- Gibt zurück:
- a `GtkWidget`
-
reset
public void reset()Resets the @controller to a clean state. -
setName
Sets a name on the controller that can be used for debugging.- Parameter:
name- a name for @controller
-
setName
Sets a name on the controller that can be used for debugging.- Parameter:
name- a name for @controller
-
setPropagationLimit
public void setPropagationLimit(int limit) Sets the event propagation limit on the event controller.
If the limit is set to %GTK_LIMIT_SAME_NATIVE, the controller
won't handle events that are targeted at widgets on a different
surface, such as popovers.- Parameter:
limit- the propagation limit
-
setPropagationPhase
public void setPropagationPhase(int phase) Sets the propagation phase at which a controller handles events.
If @phase is %GTK_PHASE_NONE, no automatic event handling will be
performed, but other additional gesture maintenance will.- Parameter:
phase- a propagation phase
-
setStaticName
Sets a name on the controller that can be used for debugging.- Parameter:
name- a name for @controller, must be a static string
-
setStaticName
Sets a name on the controller that can be used for debugging.- Parameter:
name- a name for @controller, must be a static string
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-