Package ch.bailu.gtk.gtk
Class DropControllerMotion
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.gobject.Object
ch.bailu.gtk.gtk.EventController
ch.bailu.gtk.gtk.DropControllerMotion
- All Implemented Interfaces:
PointerInterface
`GtkDropControllerMotion` is an event controller tracking
the pointer during Drag-and-Drop operations.
It is modeled after [class@Gtk.EventControllerMotion] so if you
have used that, this should feel really familiar.
This controller is not able to accept drops, use [class@Gtk.DropTarget]
for that purpose.
the pointer during Drag-and-Drop operations.
It is modeled after [class@Gtk.EventControllerMotion] so if you
have used that, this should feel really familiar.
This controller is not able to accept drops, use [class@Gtk.DropTarget]
for that purpose.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static interface
static interface
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
ConstructorDescriptionCreates a new event controller that will handle pointer motion
events during drag and drop.DropControllerMotion
(PointerContainer pointer) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns if a Drag-and-Drop operation is within the widget
@self or one of its children.static ClassHandler
getDrop()
Returns the `GdkDrop` of a current Drag-and-Drop operation
over the widget of @self.static int
static long
static TypeSystem.TypeSize
static long
static TypeSystem.TypeSize
boolean
Returns if a Drag-and-Drop operation is within the widget
@self, not one of its children.onEnter
(DropControllerMotion.OnEnter signal) Connect to signal "enter".onLeave
(DropControllerMotion.OnLeave signal) Connect to signal "leave".Connect to signal "motion".Methods inherited from class ch.bailu.gtk.gtk.EventController
getCurrentEvent, getCurrentEventDevice, getCurrentEventState, getCurrentEventTime, getName, getPropagationLimit, getPropagationPhase, getWidget, reset, setName, setName, setPropagationLimit, setPropagationPhase, setStaticName, setStaticName
Methods 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, weakUnref
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
-
SIGNAL_ON_ENTER
- See Also:
-
SIGNAL_ON_LEAVE
- See Also:
-
SIGNAL_ON_MOTION
- See Also:
-
-
Constructor Details
-
DropControllerMotion
-
DropControllerMotion
public DropControllerMotion()Creates a new event controller that will handle pointer motion
events during drag and drop.
-
-
Method Details
-
getClassHandler
-
containsPointer
public boolean containsPointer()Returns if a Drag-and-Drop operation is within the widget
@self or one of its children.- Returns:
- %TRUE if a dragging pointer is within @self or one of its children.
-
getDrop
Returns the `GdkDrop` of a current Drag-and-Drop operation
over the widget of @self.- Returns:
- The `GdkDrop` currently happening within @self
-
isPointer
public boolean isPointer()Returns if a Drag-and-Drop operation is within the widget
@self, not one of its children.- Returns:
- %TRUE if a dragging pointer is within @self but not one of its children
-
onEnter
Connect to signal "enter".
SeeDropControllerMotion.OnEnter.onEnter(double, double)
for signal description.
FieldSIGNAL_ON_ENTER
contains original signal name and can be used as resource reference.- Parameters:
signal
- callback function (lambda).- Returns:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
onLeave
Connect to signal "leave".
SeeDropControllerMotion.OnLeave.onLeave()
for signal description.
FieldSIGNAL_ON_LEAVE
contains original signal name and can be used as resource reference.- Parameters:
signal
- callback function (lambda).- Returns:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
onMotion
Connect to signal "motion".
SeeDropControllerMotion.OnMotion.onMotion(double, double)
for signal description.
FieldSIGNAL_ON_MOTION
contains original signal name and can be used as resource reference.- Parameters:
signal
- callback function (lambda).- Returns:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-