| Copyright | Will Thompson and Iñaki García Etxebarria | 
|---|---|
| License | LGPL-2.1 | 
| Maintainer | Iñaki García Etxebarria | 
| Safe Haskell | Safe-Inferred | 
| Language | Haskell2010 | 
GI.Clutter.Structs.MotionEvent
Description
Event for the pointer motion
Since: 0.2
Synopsis
- newtype MotionEvent = MotionEvent (ManagedPtr MotionEvent)
 - newZeroMotionEvent :: MonadIO m => m MotionEvent
 - getMotionEventAxes :: MonadIO m => MotionEvent -> m Double
 - setMotionEventAxes :: MonadIO m => MotionEvent -> Double -> m ()
 - clearMotionEventDevice :: MonadIO m => MotionEvent -> m ()
 - getMotionEventDevice :: MonadIO m => MotionEvent -> m (Maybe InputDevice)
 - setMotionEventDevice :: MonadIO m => MotionEvent -> Ptr InputDevice -> m ()
 - getMotionEventFlags :: MonadIO m => MotionEvent -> m [EventFlags]
 - setMotionEventFlags :: MonadIO m => MotionEvent -> [EventFlags] -> m ()
 - getMotionEventModifierState :: MonadIO m => MotionEvent -> m [ModifierType]
 - setMotionEventModifierState :: MonadIO m => MotionEvent -> [ModifierType] -> m ()
 - clearMotionEventSource :: MonadIO m => MotionEvent -> m ()
 - getMotionEventSource :: MonadIO m => MotionEvent -> m (Maybe Actor)
 - setMotionEventSource :: MonadIO m => MotionEvent -> Ptr Actor -> m ()
 - clearMotionEventStage :: MonadIO m => MotionEvent -> m ()
 - getMotionEventStage :: MonadIO m => MotionEvent -> m (Maybe Stage)
 - setMotionEventStage :: MonadIO m => MotionEvent -> Ptr Stage -> m ()
 - getMotionEventTime :: MonadIO m => MotionEvent -> m Word32
 - setMotionEventTime :: MonadIO m => MotionEvent -> Word32 -> m ()
 - getMotionEventType :: MonadIO m => MotionEvent -> m EventType
 - setMotionEventType :: MonadIO m => MotionEvent -> EventType -> m ()
 - getMotionEventX :: MonadIO m => MotionEvent -> m Float
 - setMotionEventX :: MonadIO m => MotionEvent -> Float -> m ()
 - getMotionEventY :: MonadIO m => MotionEvent -> m Float
 - setMotionEventY :: MonadIO m => MotionEvent -> Float -> m ()
 
Exported types
newtype MotionEvent Source #
Memory-managed wrapper type.
Constructors
| MotionEvent (ManagedPtr MotionEvent) | 
Instances
| Eq MotionEvent Source # | |
Defined in GI.Clutter.Structs.MotionEvent  | |
| BoxedPtr MotionEvent Source # | |
Defined in GI.Clutter.Structs.MotionEvent  | |
| CallocPtr MotionEvent Source # | |
Defined in GI.Clutter.Structs.MotionEvent Methods boxedPtrCalloc :: IO (Ptr MotionEvent)  | |
| ManagedPtrNewtype MotionEvent Source # | |
Defined in GI.Clutter.Structs.MotionEvent Methods toManagedPtr :: MotionEvent -> ManagedPtr MotionEvent  | |
| tag ~ 'AttrSet => Constructible MotionEvent tag Source # | |
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
setmotionEvent [ #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
setmotionEvent [ #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
setmotionEvent [ #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
setmotionEvent [ #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
setmotionEvent [ #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
setmotionEvent [ #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
setmotionEvent [ #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
setmotionEvent [ #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
setmotionEvent [ #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
setmotionEvent [ #y:=value ]