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

Description

Event for the pointer motion

Since: 0.2

Synopsis

Exported types

newtype MotionEvent Source #

Memory-managed wrapper type.

Constructors

MotionEvent (ManagedPtr MotionEvent) 

Instances

Instances details
Eq MotionEvent Source # 
Instance details

Defined in GI.Clutter.Structs.MotionEvent

BoxedPtr MotionEvent Source # 
Instance details

Defined in GI.Clutter.Structs.MotionEvent

CallocPtr MotionEvent Source # 
Instance details

Defined in GI.Clutter.Structs.MotionEvent

ManagedPtrNewtype MotionEvent Source # 
Instance details

Defined in GI.Clutter.Structs.MotionEvent

Methods

toManagedPtr :: MotionEvent -> ManagedPtr MotionEvent

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

Defined in GI.Clutter.Structs.MotionEvent

Methods

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

newZeroMotionEvent :: MonadIO m => m MotionEvent Source #

Construct a MotionEvent struct initialized to zero.

Methods

Properties

axes

reserved for future use

getMotionEventAxes :: MonadIO m => MotionEvent -> m Double Source #

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

get motionEvent #axes

setMotionEventAxes :: MonadIO m => MotionEvent -> Double -> m () Source #

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

set motionEvent [ #axes := value ]

device

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

clearMotionEventDevice :: MonadIO m => MotionEvent -> m () Source #

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

clear #device

getMotionEventDevice :: MonadIO m => MotionEvent -> m (Maybe InputDevice) Source #

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

get motionEvent #device

setMotionEventDevice :: MonadIO m => MotionEvent -> Ptr InputDevice -> m () Source #

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

set motionEvent [ #device := value ]

flags

event flags

getMotionEventFlags :: MonadIO m => MotionEvent -> m [EventFlags] Source #

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

get motionEvent #flags

setMotionEventFlags :: MonadIO m => MotionEvent -> [EventFlags] -> m () Source #

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

set motionEvent [ #flags := value ]

modifierState

button modifiers

getMotionEventModifierState :: MonadIO m => MotionEvent -> m [ModifierType] Source #

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

get motionEvent #modifierState

setMotionEventModifierState :: MonadIO m => MotionEvent -> [ModifierType] -> m () Source #

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

set motionEvent [ #modifierState := value ]

source

event source actor

clearMotionEventSource :: MonadIO m => MotionEvent -> m () Source #

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

clear #source

getMotionEventSource :: MonadIO m => MotionEvent -> m (Maybe Actor) Source #

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

get motionEvent #source

setMotionEventSource :: MonadIO m => MotionEvent -> Ptr Actor -> m () Source #

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

set motionEvent [ #source := value ]

stage

event source stage

clearMotionEventStage :: MonadIO m => MotionEvent -> m () Source #

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

clear #stage

getMotionEventStage :: MonadIO m => MotionEvent -> m (Maybe Stage) Source #

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

get motionEvent #stage

setMotionEventStage :: MonadIO m => MotionEvent -> Ptr Stage -> m () Source #

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

set motionEvent [ #stage := value ]

time

event time

getMotionEventTime :: MonadIO m => MotionEvent -> m Word32 Source #

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

get motionEvent #time

setMotionEventTime :: MonadIO m => MotionEvent -> Word32 -> m () Source #

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

set motionEvent [ #time := value ]

type

event type

getMotionEventType :: MonadIO m => MotionEvent -> m EventType Source #

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

get motionEvent #type

setMotionEventType :: MonadIO m => MotionEvent -> EventType -> m () Source #

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

set motionEvent [ #type := value ]

x

event X coordinate

getMotionEventX :: MonadIO m => MotionEvent -> m Float Source #

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

get motionEvent #x

setMotionEventX :: MonadIO m => MotionEvent -> Float -> m () Source #

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

set motionEvent [ #x := value ]

y

event Y coordinate

getMotionEventY :: MonadIO m => MotionEvent -> m Float Source #

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

get motionEvent #y

setMotionEventY :: MonadIO m => MotionEvent -> Float -> m () Source #

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

set motionEvent [ #y := value ]