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

GI.Gdk.Structs.EventTouchpadSwipe

Description

Generated during touchpad swipe gestures.

Synopsis

Exported types

newtype EventTouchpadSwipe Source #

Memory-managed wrapper type.

Constructors

EventTouchpadSwipe (ManagedPtr EventTouchpadSwipe) 

Instances

Instances details
Eq EventTouchpadSwipe Source # 
Instance details

Defined in GI.Gdk.Structs.EventTouchpadSwipe

BoxedPtr EventTouchpadSwipe Source # 
Instance details

Defined in GI.Gdk.Structs.EventTouchpadSwipe

CallocPtr EventTouchpadSwipe Source # 
Instance details

Defined in GI.Gdk.Structs.EventTouchpadSwipe

ManagedPtrNewtype EventTouchpadSwipe Source # 
Instance details

Defined in GI.Gdk.Structs.EventTouchpadSwipe

tag ~ 'AttrSet => Constructible EventTouchpadSwipe tag Source # 
Instance details

Defined in GI.Gdk.Structs.EventTouchpadSwipe

Methods

new :: MonadIO m => (ManagedPtr EventTouchpadSwipe -> EventTouchpadSwipe) -> [AttrOp EventTouchpadSwipe tag] -> m EventTouchpadSwipe

newZeroEventTouchpadSwipe :: MonadIO m => m EventTouchpadSwipe Source #

Construct a EventTouchpadSwipe struct initialized to zero.

Methods

Properties

dx

Movement delta in the X axis of the swipe focal point

getEventTouchpadSwipeDx :: MonadIO m => EventTouchpadSwipe -> m Double Source #

Get the value of the “dx” field. When overloading is enabled, this is equivalent to

get eventTouchpadSwipe #dx

setEventTouchpadSwipeDx :: MonadIO m => EventTouchpadSwipe -> Double -> m () Source #

Set the value of the “dx” field. When overloading is enabled, this is equivalent to

set eventTouchpadSwipe [ #dx := value ]

dy

Movement delta in the Y axis of the swipe focal point

getEventTouchpadSwipeDy :: MonadIO m => EventTouchpadSwipe -> m Double Source #

Get the value of the “dy” field. When overloading is enabled, this is equivalent to

get eventTouchpadSwipe #dy

setEventTouchpadSwipeDy :: MonadIO m => EventTouchpadSwipe -> Double -> m () Source #

Set the value of the “dy” field. When overloading is enabled, this is equivalent to

set eventTouchpadSwipe [ #dy := value ]

nFingers

The number of fingers triggering the swipe

getEventTouchpadSwipeNFingers :: MonadIO m => EventTouchpadSwipe -> m Int8 Source #

Get the value of the “n_fingers” field. When overloading is enabled, this is equivalent to

get eventTouchpadSwipe #nFingers

setEventTouchpadSwipeNFingers :: MonadIO m => EventTouchpadSwipe -> Int8 -> m () Source #

Set the value of the “n_fingers” field. When overloading is enabled, this is equivalent to

set eventTouchpadSwipe [ #nFingers := value ]

phase

the current phase of the gesture

getEventTouchpadSwipePhase :: MonadIO m => EventTouchpadSwipe -> m Int8 Source #

Get the value of the “phase” field. When overloading is enabled, this is equivalent to

get eventTouchpadSwipe #phase

setEventTouchpadSwipePhase :: MonadIO m => EventTouchpadSwipe -> Int8 -> m () Source #

Set the value of the “phase” field. When overloading is enabled, this is equivalent to

set eventTouchpadSwipe [ #phase := value ]

sendEvent

True if the event was sent explicitly

getEventTouchpadSwipeSendEvent :: MonadIO m => EventTouchpadSwipe -> m Int8 Source #

Get the value of the “send_event” field. When overloading is enabled, this is equivalent to

get eventTouchpadSwipe #sendEvent

setEventTouchpadSwipeSendEvent :: MonadIO m => EventTouchpadSwipe -> Int8 -> m () Source #

Set the value of the “send_event” field. When overloading is enabled, this is equivalent to

set eventTouchpadSwipe [ #sendEvent := value ]

state

a bit-mask representing the state of the modifier keys (e.g. Control, Shift and Alt) and the pointer buttons. See ModifierType.

getEventTouchpadSwipeState :: MonadIO m => EventTouchpadSwipe -> m [ModifierType] Source #

Get the value of the “state” field. When overloading is enabled, this is equivalent to

get eventTouchpadSwipe #state

setEventTouchpadSwipeState :: MonadIO m => EventTouchpadSwipe -> [ModifierType] -> m () Source #

Set the value of the “state” field. When overloading is enabled, this is equivalent to

set eventTouchpadSwipe [ #state := value ]

time

the time of the event in milliseconds

getEventTouchpadSwipeTime :: MonadIO m => EventTouchpadSwipe -> m Word32 Source #

Get the value of the “time” field. When overloading is enabled, this is equivalent to

get eventTouchpadSwipe #time

setEventTouchpadSwipeTime :: MonadIO m => EventTouchpadSwipe -> Word32 -> m () Source #

Set the value of the “time” field. When overloading is enabled, this is equivalent to

set eventTouchpadSwipe [ #time := value ]

type

the type of the event (EventTypeTouchpadSwipe)

getEventTouchpadSwipeType :: MonadIO m => EventTouchpadSwipe -> m EventType Source #

Get the value of the “type” field. When overloading is enabled, this is equivalent to

get eventTouchpadSwipe #type

setEventTouchpadSwipeType :: MonadIO m => EventTouchpadSwipe -> EventType -> m () Source #

Set the value of the “type” field. When overloading is enabled, this is equivalent to

set eventTouchpadSwipe [ #type := value ]

window

the window which received the event

clearEventTouchpadSwipeWindow :: MonadIO m => EventTouchpadSwipe -> m () Source #

Set the value of the “window” field to Nothing. When overloading is enabled, this is equivalent to

clear #window

getEventTouchpadSwipeWindow :: MonadIO m => EventTouchpadSwipe -> m (Maybe Window) Source #

Get the value of the “window” field. When overloading is enabled, this is equivalent to

get eventTouchpadSwipe #window

setEventTouchpadSwipeWindow :: MonadIO m => EventTouchpadSwipe -> Ptr Window -> m () Source #

Set the value of the “window” field. When overloading is enabled, this is equivalent to

set eventTouchpadSwipe [ #window := value ]

x

The X coordinate of the pointer

getEventTouchpadSwipeX :: MonadIO m => EventTouchpadSwipe -> m Double Source #

Get the value of the “x” field. When overloading is enabled, this is equivalent to

get eventTouchpadSwipe #x

setEventTouchpadSwipeX :: MonadIO m => EventTouchpadSwipe -> Double -> m () Source #

Set the value of the “x” field. When overloading is enabled, this is equivalent to

set eventTouchpadSwipe [ #x := value ]

xRoot

The X coordinate of the pointer, relative to the root of the screen.

getEventTouchpadSwipeXRoot :: MonadIO m => EventTouchpadSwipe -> m Double Source #

Get the value of the “x_root” field. When overloading is enabled, this is equivalent to

get eventTouchpadSwipe #xRoot

setEventTouchpadSwipeXRoot :: MonadIO m => EventTouchpadSwipe -> Double -> m () Source #

Set the value of the “x_root” field. When overloading is enabled, this is equivalent to

set eventTouchpadSwipe [ #xRoot := value ]

y

The Y coordinate of the pointer

getEventTouchpadSwipeY :: MonadIO m => EventTouchpadSwipe -> m Double Source #

Get the value of the “y” field. When overloading is enabled, this is equivalent to

get eventTouchpadSwipe #y

setEventTouchpadSwipeY :: MonadIO m => EventTouchpadSwipe -> Double -> m () Source #

Set the value of the “y” field. When overloading is enabled, this is equivalent to

set eventTouchpadSwipe [ #y := value ]

yRoot

The Y coordinate of the pointer, relative to the root of the screen.

getEventTouchpadSwipeYRoot :: MonadIO m => EventTouchpadSwipe -> m Double Source #

Get the value of the “y_root” field. When overloading is enabled, this is equivalent to

get eventTouchpadSwipe #yRoot

setEventTouchpadSwipeYRoot :: MonadIO m => EventTouchpadSwipe -> Double -> m () Source #

Set the value of the “y_root” field. When overloading is enabled, this is equivalent to

set eventTouchpadSwipe [ #yRoot := value ]