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 |
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.
Instances
Eq MotionEvent Source # | |
Defined in GI.Clutter.Structs.MotionEvent (==) :: MotionEvent -> MotionEvent -> Bool # (/=) :: MotionEvent -> MotionEvent -> Bool # | |
BoxedPtr MotionEvent Source # | |
Defined in GI.Clutter.Structs.MotionEvent boxedPtrCopy :: MotionEvent -> IO MotionEvent # boxedPtrFree :: MotionEvent -> IO () # | |
CallocPtr MotionEvent Source # | |
Defined in GI.Clutter.Structs.MotionEvent boxedPtrCalloc :: IO (Ptr MotionEvent) # | |
ManagedPtrNewtype MotionEvent Source # | |
Defined in GI.Clutter.Structs.MotionEvent | |
tag ~ 'AttrSet => Constructible MotionEvent tag Source # | |
Defined in GI.Clutter.Structs.MotionEvent 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 ]