gi-clutter-1.0.5: clutter GObject bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Clutter.Structs.TouchpadSwipeEvent

Description

Used for touchpad swipe gesture events. The current state of the gesture will be determined by the phase field.

Since: 1.24

Synopsis

Exported types

newtype TouchpadSwipeEvent Source #

Memory-managed wrapper type.

Constructors

TouchpadSwipeEvent (ManagedPtr TouchpadSwipeEvent) 

newZeroTouchpadSwipeEvent :: MonadIO m => m TouchpadSwipeEvent Source #

Construct a TouchpadSwipeEvent struct initialized to zero.

Methods

Properties

dx

movement delta of the pinch focal point in the X axis

getTouchpadSwipeEventDx :: MonadIO m => TouchpadSwipeEvent -> m Float Source #

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

get touchpadSwipeEvent #dx

setTouchpadSwipeEventDx :: MonadIO m => TouchpadSwipeEvent -> Float -> m () Source #

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

set touchpadSwipeEvent [ #dx := value ]

dy

movement delta of the pinch focal point in the Y axis

getTouchpadSwipeEventDy :: MonadIO m => TouchpadSwipeEvent -> m Float Source #

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

get touchpadSwipeEvent #dy

setTouchpadSwipeEventDy :: MonadIO m => TouchpadSwipeEvent -> Float -> m () Source #

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

set touchpadSwipeEvent [ #dy := value ]

flags

event flags

getTouchpadSwipeEventFlags :: MonadIO m => TouchpadSwipeEvent -> m [EventFlags] Source #

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

get touchpadSwipeEvent #flags

setTouchpadSwipeEventFlags :: MonadIO m => TouchpadSwipeEvent -> [EventFlags] -> m () Source #

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

set touchpadSwipeEvent [ #flags := value ]

nFingers

the number of fingers triggering the swipe

getTouchpadSwipeEventNFingers :: MonadIO m => TouchpadSwipeEvent -> m Word32 Source #

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

get touchpadSwipeEvent #nFingers

setTouchpadSwipeEventNFingers :: MonadIO m => TouchpadSwipeEvent -> Word32 -> m () Source #

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

set touchpadSwipeEvent [ #nFingers := value ]

phase

the current phase of the gesture

getTouchpadSwipeEventPhase :: MonadIO m => TouchpadSwipeEvent -> m TouchpadGesturePhase Source #

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

get touchpadSwipeEvent #phase

setTouchpadSwipeEventPhase :: MonadIO m => TouchpadSwipeEvent -> TouchpadGesturePhase -> m () Source #

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

set touchpadSwipeEvent [ #phase := value ]

source

event source actor (unused)

clearTouchpadSwipeEventSource :: MonadIO m => TouchpadSwipeEvent -> m () Source #

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

clear #source

getTouchpadSwipeEventSource :: MonadIO m => TouchpadSwipeEvent -> m (Maybe Actor) Source #

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

get touchpadSwipeEvent #source

setTouchpadSwipeEventSource :: MonadIO m => TouchpadSwipeEvent -> Ptr Actor -> m () Source #

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

set touchpadSwipeEvent [ #source := value ]

stage

event source stage

clearTouchpadSwipeEventStage :: MonadIO m => TouchpadSwipeEvent -> m () Source #

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

clear #stage

getTouchpadSwipeEventStage :: MonadIO m => TouchpadSwipeEvent -> m (Maybe Stage) Source #

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

get touchpadSwipeEvent #stage

setTouchpadSwipeEventStage :: MonadIO m => TouchpadSwipeEvent -> Ptr Stage -> m () Source #

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

set touchpadSwipeEvent [ #stage := value ]

time

event time

getTouchpadSwipeEventTime :: MonadIO m => TouchpadSwipeEvent -> m Word32 Source #

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

get touchpadSwipeEvent #time

setTouchpadSwipeEventTime :: MonadIO m => TouchpadSwipeEvent -> Word32 -> m () Source #

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

set touchpadSwipeEvent [ #time := value ]

type

event type

getTouchpadSwipeEventType :: MonadIO m => TouchpadSwipeEvent -> m EventType Source #

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

get touchpadSwipeEvent #type

setTouchpadSwipeEventType :: MonadIO m => TouchpadSwipeEvent -> EventType -> m () Source #

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

set touchpadSwipeEvent [ #type := value ]

x

the X coordinate of the pointer, relative to the stage

getTouchpadSwipeEventX :: MonadIO m => TouchpadSwipeEvent -> m Float Source #

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

get touchpadSwipeEvent #x

setTouchpadSwipeEventX :: MonadIO m => TouchpadSwipeEvent -> Float -> m () Source #

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

set touchpadSwipeEvent [ #x := value ]

y

the Y coordinate of the pointer, relative to the stage

getTouchpadSwipeEventY :: MonadIO m => TouchpadSwipeEvent -> m Float Source #

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

get touchpadSwipeEvent #y

setTouchpadSwipeEventY :: MonadIO m => TouchpadSwipeEvent -> Float -> m () Source #

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

set touchpadSwipeEvent [ #y := value ]