gi-clutter-1.0.3: 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.TouchEvent

Description

Used for touch events.

The type field will be one of EventTypeTouchBegin, EventTypeTouchEnd, EventTypeTouchUpdate, or EventTypeTouchCancel.

Touch events are grouped into sequences; each touch sequence will begin with a EventTypeTouchBegin event, progress with EventTypeTouchUpdate events, and end either with a EventTypeTouchEnd event or with a EventTypeTouchCancel event.

With multi-touch capable devices there can be multiple event sequence running at the same time.

Since: 1.10

Synopsis

Exported types

newtype TouchEvent Source #

Memory-managed wrapper type.

Constructors

TouchEvent (ManagedPtr TouchEvent) 

Instances

Instances details
Eq TouchEvent Source # 
Instance details

Defined in GI.Clutter.Structs.TouchEvent

BoxedPtr TouchEvent Source # 
Instance details

Defined in GI.Clutter.Structs.TouchEvent

CallocPtr TouchEvent Source # 
Instance details

Defined in GI.Clutter.Structs.TouchEvent

ManagedPtrNewtype TouchEvent Source # 
Instance details

Defined in GI.Clutter.Structs.TouchEvent

Methods

toManagedPtr :: TouchEvent -> ManagedPtr TouchEvent

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

Defined in GI.Clutter.Structs.TouchEvent

Methods

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

newZeroTouchEvent :: MonadIO m => m TouchEvent Source #

Construct a TouchEvent struct initialized to zero.

Methods

Properties

axes

reserved

getTouchEventAxes :: MonadIO m => TouchEvent -> m Double Source #

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

get touchEvent #axes

setTouchEventAxes :: MonadIO m => TouchEvent -> Double -> m () Source #

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

set touchEvent [ #axes := value ]

device

the device that originated the event. If you want the physical device the event originated from, use eventGetSourceDevice

clearTouchEventDevice :: MonadIO m => TouchEvent -> m () Source #

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

clear #device

getTouchEventDevice :: MonadIO m => TouchEvent -> m (Maybe InputDevice) Source #

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

get touchEvent #device

setTouchEventDevice :: MonadIO m => TouchEvent -> Ptr InputDevice -> m () Source #

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

set touchEvent [ #device := value ]

flags

event flags

getTouchEventFlags :: MonadIO m => TouchEvent -> m [EventFlags] Source #

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

get touchEvent #flags

setTouchEventFlags :: MonadIO m => TouchEvent -> [EventFlags] -> m () Source #

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

set touchEvent [ #flags := value ]

modifierState

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

getTouchEventModifierState :: MonadIO m => TouchEvent -> m [ModifierType] Source #

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

get touchEvent #modifierState

setTouchEventModifierState :: MonadIO m => TouchEvent -> [ModifierType] -> m () Source #

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

set touchEvent [ #modifierState := value ]

sequence

the event sequence that this event belongs to

clearTouchEventSequence :: MonadIO m => TouchEvent -> m () Source #

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

clear #sequence

getTouchEventSequence :: MonadIO m => TouchEvent -> m (Maybe EventSequence) Source #

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

get touchEvent #sequence

setTouchEventSequence :: MonadIO m => TouchEvent -> Ptr EventSequence -> m () Source #

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

set touchEvent [ #sequence := value ]

source

event source actor (unused)

clearTouchEventSource :: MonadIO m => TouchEvent -> m () Source #

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

clear #source

getTouchEventSource :: MonadIO m => TouchEvent -> m (Maybe Actor) Source #

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

get touchEvent #source

setTouchEventSource :: MonadIO m => TouchEvent -> Ptr Actor -> m () Source #

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

set touchEvent [ #source := value ]

stage

event source stage

clearTouchEventStage :: MonadIO m => TouchEvent -> m () Source #

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

clear #stage

getTouchEventStage :: MonadIO m => TouchEvent -> m (Maybe Stage) Source #

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

get touchEvent #stage

setTouchEventStage :: MonadIO m => TouchEvent -> Ptr Stage -> m () Source #

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

set touchEvent [ #stage := value ]

time

event time

getTouchEventTime :: MonadIO m => TouchEvent -> m Word32 Source #

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

get touchEvent #time

setTouchEventTime :: MonadIO m => TouchEvent -> Word32 -> m () Source #

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

set touchEvent [ #time := value ]

type

event type

getTouchEventType :: MonadIO m => TouchEvent -> m EventType Source #

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

get touchEvent #type

setTouchEventType :: MonadIO m => TouchEvent -> EventType -> m () Source #

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

set touchEvent [ #type := value ]

x

the X coordinate of the pointer, relative to the stage

getTouchEventX :: MonadIO m => TouchEvent -> m Float Source #

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

get touchEvent #x

setTouchEventX :: MonadIO m => TouchEvent -> Float -> m () Source #

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

set touchEvent [ #x := value ]

y

the Y coordinate of the pointer, relative to the stage

getTouchEventY :: MonadIO m => TouchEvent -> m Float Source #

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

get touchEvent #y

setTouchEventY :: MonadIO m => TouchEvent -> Float -> m () Source #

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

set touchEvent [ #y := value ]