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.TouchpadPinchEvent

Description

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

Each event with phase TouchpadGesturePhaseBegin will report a scale of 1.0, all later phases in the gesture report the current scale relative to the initial 1.0 value (eg. 0.5 being half the size, 2.0 twice as big).

Since: 1.24

Synopsis

Exported types

newtype TouchpadPinchEvent Source #

Memory-managed wrapper type.

Constructors

TouchpadPinchEvent (ManagedPtr TouchpadPinchEvent) 

newZeroTouchpadPinchEvent :: MonadIO m => m TouchpadPinchEvent Source #

Construct a TouchpadPinchEvent struct initialized to zero.

Methods

Properties

angleDelta

angle delta in degrees, clockwise rotations are represented by positive deltas

getTouchpadPinchEventAngleDelta :: MonadIO m => TouchpadPinchEvent -> m Float Source #

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

get touchpadPinchEvent #angleDelta

setTouchpadPinchEventAngleDelta :: MonadIO m => TouchpadPinchEvent -> Float -> m () Source #

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

set touchpadPinchEvent [ #angleDelta := value ]

dx

movement delta of the pinch focal point in the X axis

getTouchpadPinchEventDx :: MonadIO m => TouchpadPinchEvent -> m Float Source #

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

get touchpadPinchEvent #dx

setTouchpadPinchEventDx :: MonadIO m => TouchpadPinchEvent -> Float -> m () Source #

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

set touchpadPinchEvent [ #dx := value ]

dy

movement delta of the pinch focal point in the Y axis

getTouchpadPinchEventDy :: MonadIO m => TouchpadPinchEvent -> m Float Source #

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

get touchpadPinchEvent #dy

setTouchpadPinchEventDy :: MonadIO m => TouchpadPinchEvent -> Float -> m () Source #

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

set touchpadPinchEvent [ #dy := value ]

flags

event flags

getTouchpadPinchEventFlags :: MonadIO m => TouchpadPinchEvent -> m [EventFlags] Source #

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

get touchpadPinchEvent #flags

setTouchpadPinchEventFlags :: MonadIO m => TouchpadPinchEvent -> [EventFlags] -> m () Source #

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

set touchpadPinchEvent [ #flags := value ]

phase

the current phase of the gesture

getTouchpadPinchEventPhase :: MonadIO m => TouchpadPinchEvent -> m TouchpadGesturePhase Source #

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

get touchpadPinchEvent #phase

setTouchpadPinchEventPhase :: MonadIO m => TouchpadPinchEvent -> TouchpadGesturePhase -> m () Source #

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

set touchpadPinchEvent [ #phase := value ]

scale

the current scale

getTouchpadPinchEventScale :: MonadIO m => TouchpadPinchEvent -> m Float Source #

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

get touchpadPinchEvent #scale

setTouchpadPinchEventScale :: MonadIO m => TouchpadPinchEvent -> Float -> m () Source #

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

set touchpadPinchEvent [ #scale := value ]

source

event source actor (unused)

clearTouchpadPinchEventSource :: MonadIO m => TouchpadPinchEvent -> m () Source #

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

clear #source

getTouchpadPinchEventSource :: MonadIO m => TouchpadPinchEvent -> m (Maybe Actor) Source #

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

get touchpadPinchEvent #source

setTouchpadPinchEventSource :: MonadIO m => TouchpadPinchEvent -> Ptr Actor -> m () Source #

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

set touchpadPinchEvent [ #source := value ]

stage

event source stage

clearTouchpadPinchEventStage :: MonadIO m => TouchpadPinchEvent -> m () Source #

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

clear #stage

getTouchpadPinchEventStage :: MonadIO m => TouchpadPinchEvent -> m (Maybe Stage) Source #

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

get touchpadPinchEvent #stage

setTouchpadPinchEventStage :: MonadIO m => TouchpadPinchEvent -> Ptr Stage -> m () Source #

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

set touchpadPinchEvent [ #stage := value ]

time

event time

getTouchpadPinchEventTime :: MonadIO m => TouchpadPinchEvent -> m Word32 Source #

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

get touchpadPinchEvent #time

setTouchpadPinchEventTime :: MonadIO m => TouchpadPinchEvent -> Word32 -> m () Source #

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

set touchpadPinchEvent [ #time := value ]

type

event type

getTouchpadPinchEventType :: MonadIO m => TouchpadPinchEvent -> m EventType Source #

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

get touchpadPinchEvent #type

setTouchpadPinchEventType :: MonadIO m => TouchpadPinchEvent -> EventType -> m () Source #

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

set touchpadPinchEvent [ #type := value ]

x

the X coordinate of the pointer, relative to the stage

getTouchpadPinchEventX :: MonadIO m => TouchpadPinchEvent -> m Float Source #

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

get touchpadPinchEvent #x

setTouchpadPinchEventX :: MonadIO m => TouchpadPinchEvent -> Float -> m () Source #

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

set touchpadPinchEvent [ #x := value ]

y

the Y coordinate of the pointer, relative to the stage

getTouchpadPinchEventY :: MonadIO m => TouchpadPinchEvent -> m Float Source #

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

get touchpadPinchEvent #y

setTouchpadPinchEventY :: MonadIO m => TouchpadPinchEvent -> Float -> m () Source #

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

set touchpadPinchEvent [ #y := value ]