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 |
Key event
Since: 0.2
Synopsis
- newtype KeyEvent = KeyEvent (ManagedPtr KeyEvent)
- newZeroKeyEvent :: MonadIO m => m KeyEvent
- clearKeyEventDevice :: MonadIO m => KeyEvent -> m ()
- getKeyEventDevice :: MonadIO m => KeyEvent -> m (Maybe InputDevice)
- setKeyEventDevice :: MonadIO m => KeyEvent -> Ptr InputDevice -> m ()
- getKeyEventFlags :: MonadIO m => KeyEvent -> m [EventFlags]
- setKeyEventFlags :: MonadIO m => KeyEvent -> [EventFlags] -> m ()
- getKeyEventHardwareKeycode :: MonadIO m => KeyEvent -> m Word16
- setKeyEventHardwareKeycode :: MonadIO m => KeyEvent -> Word16 -> m ()
- getKeyEventKeyval :: MonadIO m => KeyEvent -> m Word32
- setKeyEventKeyval :: MonadIO m => KeyEvent -> Word32 -> m ()
- getKeyEventModifierState :: MonadIO m => KeyEvent -> m [ModifierType]
- setKeyEventModifierState :: MonadIO m => KeyEvent -> [ModifierType] -> m ()
- clearKeyEventSource :: MonadIO m => KeyEvent -> m ()
- getKeyEventSource :: MonadIO m => KeyEvent -> m (Maybe Actor)
- setKeyEventSource :: MonadIO m => KeyEvent -> Ptr Actor -> m ()
- clearKeyEventStage :: MonadIO m => KeyEvent -> m ()
- getKeyEventStage :: MonadIO m => KeyEvent -> m (Maybe Stage)
- setKeyEventStage :: MonadIO m => KeyEvent -> Ptr Stage -> m ()
- getKeyEventTime :: MonadIO m => KeyEvent -> m Word32
- setKeyEventTime :: MonadIO m => KeyEvent -> Word32 -> m ()
- getKeyEventType :: MonadIO m => KeyEvent -> m EventType
- setKeyEventType :: MonadIO m => KeyEvent -> EventType -> m ()
- getKeyEventUnicodeValue :: MonadIO m => KeyEvent -> m Char
- setKeyEventUnicodeValue :: MonadIO m => KeyEvent -> Char -> m ()
Exported types
Memory-managed wrapper type.
Instances
Eq KeyEvent Source # | |
BoxedPtr KeyEvent Source # | |
Defined in GI.Clutter.Structs.KeyEvent boxedPtrCopy :: KeyEvent -> IO KeyEvent boxedPtrFree :: KeyEvent -> IO () | |
CallocPtr KeyEvent Source # | |
Defined in GI.Clutter.Structs.KeyEvent boxedPtrCalloc :: IO (Ptr KeyEvent) | |
ManagedPtrNewtype KeyEvent Source # | |
Defined in GI.Clutter.Structs.KeyEvent toManagedPtr :: KeyEvent -> ManagedPtr KeyEvent | |
tag ~ 'AttrSet => Constructible KeyEvent tag Source # | |
Methods
Properties
device
the device that originated the event. If you want the physical
device the event originated from, use eventGetSourceDevice
clearKeyEventDevice :: MonadIO m => KeyEvent -> m () Source #
Set the value of the “device
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#device
getKeyEventDevice :: MonadIO m => KeyEvent -> m (Maybe InputDevice) Source #
Get the value of the “device
” field.
When overloading is enabled, this is equivalent to
get
keyEvent #device
setKeyEventDevice :: MonadIO m => KeyEvent -> Ptr InputDevice -> m () Source #
Set the value of the “device
” field.
When overloading is enabled, this is equivalent to
set
keyEvent [ #device:=
value ]
flags
event flags
getKeyEventFlags :: MonadIO m => KeyEvent -> m [EventFlags] Source #
Get the value of the “flags
” field.
When overloading is enabled, this is equivalent to
get
keyEvent #flags
setKeyEventFlags :: MonadIO m => KeyEvent -> [EventFlags] -> m () Source #
Set the value of the “flags
” field.
When overloading is enabled, this is equivalent to
set
keyEvent [ #flags:=
value ]
hardwareKeycode
raw hardware key value
getKeyEventHardwareKeycode :: MonadIO m => KeyEvent -> m Word16 Source #
Get the value of the “hardware_keycode
” field.
When overloading is enabled, this is equivalent to
get
keyEvent #hardwareKeycode
setKeyEventHardwareKeycode :: MonadIO m => KeyEvent -> Word16 -> m () Source #
Set the value of the “hardware_keycode
” field.
When overloading is enabled, this is equivalent to
set
keyEvent [ #hardwareKeycode:=
value ]
keyval
raw key value
getKeyEventKeyval :: MonadIO m => KeyEvent -> m Word32 Source #
Get the value of the “keyval
” field.
When overloading is enabled, this is equivalent to
get
keyEvent #keyval
setKeyEventKeyval :: MonadIO m => KeyEvent -> Word32 -> m () Source #
Set the value of the “keyval
” field.
When overloading is enabled, this is equivalent to
set
keyEvent [ #keyval:=
value ]
modifierState
key modifiers
getKeyEventModifierState :: MonadIO m => KeyEvent -> m [ModifierType] Source #
Get the value of the “modifier_state
” field.
When overloading is enabled, this is equivalent to
get
keyEvent #modifierState
setKeyEventModifierState :: MonadIO m => KeyEvent -> [ModifierType] -> m () Source #
Set the value of the “modifier_state
” field.
When overloading is enabled, this is equivalent to
set
keyEvent [ #modifierState:=
value ]
source
event source actor
clearKeyEventSource :: MonadIO m => KeyEvent -> m () Source #
Set the value of the “source
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#source
getKeyEventSource :: MonadIO m => KeyEvent -> m (Maybe Actor) Source #
Get the value of the “source
” field.
When overloading is enabled, this is equivalent to
get
keyEvent #source
setKeyEventSource :: MonadIO m => KeyEvent -> Ptr Actor -> m () Source #
Set the value of the “source
” field.
When overloading is enabled, this is equivalent to
set
keyEvent [ #source:=
value ]
stage
event source stage
clearKeyEventStage :: MonadIO m => KeyEvent -> m () Source #
Set the value of the “stage
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#stage
getKeyEventStage :: MonadIO m => KeyEvent -> m (Maybe Stage) Source #
Get the value of the “stage
” field.
When overloading is enabled, this is equivalent to
get
keyEvent #stage
setKeyEventStage :: MonadIO m => KeyEvent -> Ptr Stage -> m () Source #
Set the value of the “stage
” field.
When overloading is enabled, this is equivalent to
set
keyEvent [ #stage:=
value ]
time
event time
getKeyEventTime :: MonadIO m => KeyEvent -> m Word32 Source #
Get the value of the “time
” field.
When overloading is enabled, this is equivalent to
get
keyEvent #time
setKeyEventTime :: MonadIO m => KeyEvent -> Word32 -> m () Source #
Set the value of the “time
” field.
When overloading is enabled, this is equivalent to
set
keyEvent [ #time:=
value ]
type
event type
getKeyEventType :: MonadIO m => KeyEvent -> m EventType Source #
Get the value of the “type
” field.
When overloading is enabled, this is equivalent to
get
keyEvent #type
setKeyEventType :: MonadIO m => KeyEvent -> EventType -> m () Source #
Set the value of the “type
” field.
When overloading is enabled, this is equivalent to
set
keyEvent [ #type:=
value ]
unicodeValue
Unicode representation
getKeyEventUnicodeValue :: MonadIO m => KeyEvent -> m Char Source #
Get the value of the “unicode_value
” field.
When overloading is enabled, this is equivalent to
get
keyEvent #unicodeValue
setKeyEventUnicodeValue :: MonadIO m => KeyEvent -> Char -> m () Source #
Set the value of the “unicode_value
” field.
When overloading is enabled, this is equivalent to
set
keyEvent [ #unicodeValue:=
value ]