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

GI.Gdk.Structs.EventTouchpadPinch

Description

Generated during touchpad swipe gestures.

Synopsis

Exported types

newZeroEventTouchpadPinch :: MonadIO m => m EventTouchpadPinch Source #

Construct a EventTouchpadPinch struct initialized to zero.

Methods

Properties

angleDelta

The angle change in radians, negative angles denote counter-clockwise movements

getEventTouchpadPinchAngleDelta :: MonadIO m => EventTouchpadPinch -> m Double Source #

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

get eventTouchpadPinch #angleDelta

setEventTouchpadPinchAngleDelta :: MonadIO m => EventTouchpadPinch -> Double -> m () Source #

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

set eventTouchpadPinch [ #angleDelta := value ]

dx

Movement delta in the X axis of the swipe focal point

getEventTouchpadPinchDx :: MonadIO m => EventTouchpadPinch -> m Double Source #

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

get eventTouchpadPinch #dx

setEventTouchpadPinchDx :: MonadIO m => EventTouchpadPinch -> Double -> m () Source #

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

set eventTouchpadPinch [ #dx := value ]

dy

Movement delta in the Y axis of the swipe focal point

getEventTouchpadPinchDy :: MonadIO m => EventTouchpadPinch -> m Double Source #

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

get eventTouchpadPinch #dy

setEventTouchpadPinchDy :: MonadIO m => EventTouchpadPinch -> Double -> m () Source #

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

set eventTouchpadPinch [ #dy := value ]

nFingers

The number of fingers triggering the pinch

getEventTouchpadPinchNFingers :: MonadIO m => EventTouchpadPinch -> m Int8 Source #

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

get eventTouchpadPinch #nFingers

setEventTouchpadPinchNFingers :: MonadIO m => EventTouchpadPinch -> Int8 -> m () Source #

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

set eventTouchpadPinch [ #nFingers := value ]

phase

the current phase of the gesture

getEventTouchpadPinchPhase :: MonadIO m => EventTouchpadPinch -> m Int8 Source #

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

get eventTouchpadPinch #phase

setEventTouchpadPinchPhase :: MonadIO m => EventTouchpadPinch -> Int8 -> m () Source #

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

set eventTouchpadPinch [ #phase := value ]

scale

The current scale, relative to that at the time of the corresponding TouchpadGesturePhaseBegin event

getEventTouchpadPinchScale :: MonadIO m => EventTouchpadPinch -> m Double Source #

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

get eventTouchpadPinch #scale

setEventTouchpadPinchScale :: MonadIO m => EventTouchpadPinch -> Double -> m () Source #

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

set eventTouchpadPinch [ #scale := value ]

sendEvent

True if the event was sent explicitly

getEventTouchpadPinchSendEvent :: MonadIO m => EventTouchpadPinch -> m Int8 Source #

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

get eventTouchpadPinch #sendEvent

setEventTouchpadPinchSendEvent :: MonadIO m => EventTouchpadPinch -> Int8 -> m () Source #

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

set eventTouchpadPinch [ #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.

getEventTouchpadPinchState :: MonadIO m => EventTouchpadPinch -> m [ModifierType] Source #

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

get eventTouchpadPinch #state

setEventTouchpadPinchState :: MonadIO m => EventTouchpadPinch -> [ModifierType] -> m () Source #

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

set eventTouchpadPinch [ #state := value ]

time

the time of the event in milliseconds

getEventTouchpadPinchTime :: MonadIO m => EventTouchpadPinch -> m Word32 Source #

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

get eventTouchpadPinch #time

setEventTouchpadPinchTime :: MonadIO m => EventTouchpadPinch -> Word32 -> m () Source #

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

set eventTouchpadPinch [ #time := value ]

type

the type of the event (EventTypeTouchpadPinch)

getEventTouchpadPinchType :: MonadIO m => EventTouchpadPinch -> m EventType Source #

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

get eventTouchpadPinch #type

setEventTouchpadPinchType :: MonadIO m => EventTouchpadPinch -> EventType -> m () Source #

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

set eventTouchpadPinch [ #type := value ]

window

the window which received the event

clearEventTouchpadPinchWindow :: MonadIO m => EventTouchpadPinch -> m () Source #

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

clear #window

getEventTouchpadPinchWindow :: MonadIO m => EventTouchpadPinch -> m (Maybe Window) Source #

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

get eventTouchpadPinch #window

setEventTouchpadPinchWindow :: MonadIO m => EventTouchpadPinch -> Ptr Window -> m () Source #

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

set eventTouchpadPinch [ #window := value ]

x

The X coordinate of the pointer

getEventTouchpadPinchX :: MonadIO m => EventTouchpadPinch -> m Double Source #

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

get eventTouchpadPinch #x

setEventTouchpadPinchX :: MonadIO m => EventTouchpadPinch -> Double -> m () Source #

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

set eventTouchpadPinch [ #x := value ]

xRoot

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

getEventTouchpadPinchXRoot :: MonadIO m => EventTouchpadPinch -> m Double Source #

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

get eventTouchpadPinch #xRoot

setEventTouchpadPinchXRoot :: MonadIO m => EventTouchpadPinch -> Double -> m () Source #

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

set eventTouchpadPinch [ #xRoot := value ]

y

The Y coordinate of the pointer

getEventTouchpadPinchY :: MonadIO m => EventTouchpadPinch -> m Double Source #

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

get eventTouchpadPinch #y

setEventTouchpadPinchY :: MonadIO m => EventTouchpadPinch -> Double -> m () Source #

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

set eventTouchpadPinch [ #y := value ]

yRoot

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

getEventTouchpadPinchYRoot :: MonadIO m => EventTouchpadPinch -> m Double Source #

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

get eventTouchpadPinch #yRoot

setEventTouchpadPinchYRoot :: MonadIO m => EventTouchpadPinch -> Double -> m () Source #

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

set eventTouchpadPinch [ #yRoot := value ]