gi-gdk-4.0.4: Gdk bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Gdk.Objects.ButtonEvent

Description

An event related to a button on a pointer device.

Synopsis

Exported types

newtype ButtonEvent Source #

Memory-managed wrapper type.

class (BoxedPtr o, TypedObject o, IsDescendantOf ButtonEvent o) => IsButtonEvent o Source #

Type class for types which can be safely cast to ButtonEvent, for instance with toButtonEvent.

Instances

Instances details
(BoxedPtr o, TypedObject o, IsDescendantOf ButtonEvent o) => IsButtonEvent o Source # 
Instance details

Defined in GI.Gdk.Objects.ButtonEvent

toButtonEvent :: (MonadIO m, IsButtonEvent o) => o -> m ButtonEvent Source #

Cast to ButtonEvent, for types for which this is known to be safe. For general casts, use castTo.

Methods

Click to display all available methods, including inherited ones

Expand

Methods

ref, triggersContextMenu, unref.

Getters

getAxes, getAxis, getButton, getDevice, getDeviceTool, getDisplay, getEventSequence, getEventType, getHistory, getModifierState, getPointerEmulated, getPosition, getSeat, getSurface, getTime.

Setters

None.

getButton

buttonEventGetButton Source #

Arguments

:: (HasCallStack, MonadIO m, IsButtonEvent a) 
=> a

event: a button event

-> m Word32

Returns: the button of event

Extract the button number from a button event.