ScrollEvent

An event related to a scrolling motion.

Members

Functions

getDeltas
void getDeltas(double deltaX, double deltaY)

Extracts the scroll deltas of a scroll event.

getDirection
gdk.types.ScrollDirection getDirection()

Extracts the direction of a scroll event.

getUnit
gdk.types.ScrollUnit getUnit()

Extracts the scroll delta unit of a scroll event.

isStop
bool isStop()

Check whether a scroll event is a stop scroll event.

Inherited Members

From Event

getAxes
bool getAxes(double[] axes)

Extracts all axis values from an event.

getAxis
bool getAxis(gdk.types.AxisUse axisUse, double value)

Extract the axis value for a particular axis use from an event structure.

getDevice
gdk.device.Device getDevice()

Returns the device of an event.

getDeviceTool
gdk.device_tool.DeviceTool getDeviceTool()

Returns a gdk.device_tool.DeviceTool representing the tool that caused the event.

getDisplay
gdk.display.Display getDisplay()

Retrieves the display associated to the event.

getEventSequence
gdk.event_sequence.EventSequence getEventSequence()

Returns the event sequence to which the event belongs.

getEventType
gdk.types.EventType getEventType()

Retrieves the type of the event.

getHistory
gdk.types.TimeCoord[] getHistory()

Retrieves the history of the device that event is for, as a list of time and coordinates.

getModifierState
gdk.types.ModifierType getModifierState()

Returns the modifier state field of an event.

getPointerEmulated
bool getPointerEmulated()

Returns whether this event is an 'emulated' pointer event.

getPosition
bool getPosition(double x, double y)

Extract the event surface relative x/y coordinates from an event.

getSeat
gdk.seat.Seat getSeat()

Returns the seat that originated the event.

getSurface
gdk.surface.Surface getSurface()

Extracts the surface associated with an event.

getTime
uint getTime()

Returns the timestamp of event.

triggersContextMenu
bool triggersContextMenu()

Returns whether a gdk.event.Event should trigger a context menu, according to platform conventions.