EventControllerMotion

#GtkEventControllerMotion is an event controller meant for situations where you need to track the position of the pointer.

This object was added in 3.24.

Constructors

this
this(void* ptr, Flag!"Take" take)
this
this(gtk.widget.Widget widget)

Creates a new event controller that will handle motion events for the given widget.

Members

Functions

connectEnter
gulong connectEnter(T callback, Flag!"After" after)

Connect to Enter signal.

connectLeave
gulong connectLeave(T callback, Flag!"After" after)

Connect to Leave signal.

connectMotion
gulong connectMotion(T callback, Flag!"After" after)

Connect to Motion signal.

self
EventControllerMotion self()

Returns this, for use in with statements.

Properties

_gType
GType _gType [@property getter]

Static functions

_getGType
GType _getGType()
builder
EventControllerMotionGidBuilder builder()

Get builder for gtk.event_controller_motion.EventControllerMotion

Inherited Members

From EventController

_getGType
GType _getGType()
_gType
GType _gType [@property getter]
self
EventController self()

Returns this, for use in with statements.

builder
EventControllerGidBuilder builder()

Get builder for gtk.event_controller.EventController

propagationPhase
gtk.types.PropagationPhase propagationPhase [@property getter]

Get propagationPhase property.

propagationPhase
gtk.types.PropagationPhase propagationPhase [@property setter]

Set propagationPhase property.

widget
gtk.widget.Widget widget [@property getter]

Get widget property.

getPropagationPhase
gtk.types.PropagationPhase getPropagationPhase()

Gets the propagation phase at which controller handles events.

getWidget
gtk.widget.Widget getWidget()

Returns the #GtkWidget this controller relates to.

handleEvent
bool handleEvent(gdk.event.Event event)

Feeds an events into controller, so it can be interpreted and the controller actions triggered.

reset
void reset()

Resets the controller to a clean state. Every interaction the controller did through #GtkEventController::handle-event will be dropped at this point.

setPropagationPhase
void setPropagationPhase(gtk.types.PropagationPhase phase)

Sets the propagation phase at which a controller handles events.