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 |
Generated during InputSourceTabletPad
button presses and releases.
Since: 3.22
Synopsis
- newtype EventPadButton = EventPadButton (ManagedPtr EventPadButton)
- newZeroEventPadButton :: MonadIO m => m EventPadButton
- getEventPadButtonButton :: MonadIO m => EventPadButton -> m Word32
- setEventPadButtonButton :: MonadIO m => EventPadButton -> Word32 -> m ()
- getEventPadButtonGroup :: MonadIO m => EventPadButton -> m Word32
- setEventPadButtonGroup :: MonadIO m => EventPadButton -> Word32 -> m ()
- getEventPadButtonMode :: MonadIO m => EventPadButton -> m Word32
- setEventPadButtonMode :: MonadIO m => EventPadButton -> Word32 -> m ()
- getEventPadButtonSendEvent :: MonadIO m => EventPadButton -> m Int8
- setEventPadButtonSendEvent :: MonadIO m => EventPadButton -> Int8 -> m ()
- getEventPadButtonTime :: MonadIO m => EventPadButton -> m Word32
- setEventPadButtonTime :: MonadIO m => EventPadButton -> Word32 -> m ()
- getEventPadButtonType :: MonadIO m => EventPadButton -> m EventType
- setEventPadButtonType :: MonadIO m => EventPadButton -> EventType -> m ()
- clearEventPadButtonWindow :: MonadIO m => EventPadButton -> m ()
- getEventPadButtonWindow :: MonadIO m => EventPadButton -> m (Maybe Window)
- setEventPadButtonWindow :: MonadIO m => EventPadButton -> Ptr Window -> m ()
Exported types
newtype EventPadButton Source #
Memory-managed wrapper type.
Instances
Eq EventPadButton Source # | |
Defined in GI.Gdk.Structs.EventPadButton (==) :: EventPadButton -> EventPadButton -> Bool # (/=) :: EventPadButton -> EventPadButton -> Bool # | |
BoxedPtr EventPadButton Source # | |
Defined in GI.Gdk.Structs.EventPadButton boxedPtrCopy :: EventPadButton -> IO EventPadButton # boxedPtrFree :: EventPadButton -> IO () # | |
CallocPtr EventPadButton Source # | |
Defined in GI.Gdk.Structs.EventPadButton boxedPtrCalloc :: IO (Ptr EventPadButton) # | |
ManagedPtrNewtype EventPadButton Source # | |
Defined in GI.Gdk.Structs.EventPadButton | |
tag ~ 'AttrSet => Constructible EventPadButton tag Source # | |
Defined in GI.Gdk.Structs.EventPadButton new :: MonadIO m => (ManagedPtr EventPadButton -> EventPadButton) -> [AttrOp EventPadButton tag] -> m EventPadButton # |
newZeroEventPadButton :: MonadIO m => m EventPadButton Source #
Construct a EventPadButton
struct initialized to zero.
Methods
Properties
button
The pad button that was pressed.
getEventPadButtonButton :: MonadIO m => EventPadButton -> m Word32 Source #
Get the value of the “button
” field.
When overloading is enabled, this is equivalent to
get
eventPadButton #button
setEventPadButtonButton :: MonadIO m => EventPadButton -> Word32 -> m () Source #
Set the value of the “button
” field.
When overloading is enabled, this is equivalent to
set
eventPadButton [ #button:=
value ]
group
the pad group the button belongs to. A InputSourceTabletPad
device
may have one or more groups containing a set of buttons/rings/strips each.
getEventPadButtonGroup :: MonadIO m => EventPadButton -> m Word32 Source #
Get the value of the “group
” field.
When overloading is enabled, this is equivalent to
get
eventPadButton #group
setEventPadButtonGroup :: MonadIO m => EventPadButton -> Word32 -> m () Source #
Set the value of the “group
” field.
When overloading is enabled, this is equivalent to
set
eventPadButton [ #group:=
value ]
mode
The current mode of group
. Different groups in a InputSourceTabletPad
device may have different current modes.
getEventPadButtonMode :: MonadIO m => EventPadButton -> m Word32 Source #
Get the value of the “mode
” field.
When overloading is enabled, this is equivalent to
get
eventPadButton #mode
setEventPadButtonMode :: MonadIO m => EventPadButton -> Word32 -> m () Source #
Set the value of the “mode
” field.
When overloading is enabled, this is equivalent to
set
eventPadButton [ #mode:=
value ]
sendEvent
True
if the event was sent explicitly.
getEventPadButtonSendEvent :: MonadIO m => EventPadButton -> m Int8 Source #
Get the value of the “send_event
” field.
When overloading is enabled, this is equivalent to
get
eventPadButton #sendEvent
setEventPadButtonSendEvent :: MonadIO m => EventPadButton -> Int8 -> m () Source #
Set the value of the “send_event
” field.
When overloading is enabled, this is equivalent to
set
eventPadButton [ #sendEvent:=
value ]
time
the time of the event in milliseconds.
getEventPadButtonTime :: MonadIO m => EventPadButton -> m Word32 Source #
Get the value of the “time
” field.
When overloading is enabled, this is equivalent to
get
eventPadButton #time
setEventPadButtonTime :: MonadIO m => EventPadButton -> Word32 -> m () Source #
Set the value of the “time
” field.
When overloading is enabled, this is equivalent to
set
eventPadButton [ #time:=
value ]
type
the type of the event (EventTypePadButtonPress
or EventTypePadButtonRelease
).
getEventPadButtonType :: MonadIO m => EventPadButton -> m EventType Source #
Get the value of the “type
” field.
When overloading is enabled, this is equivalent to
get
eventPadButton #type
setEventPadButtonType :: MonadIO m => EventPadButton -> EventType -> m () Source #
Set the value of the “type
” field.
When overloading is enabled, this is equivalent to
set
eventPadButton [ #type:=
value ]
window
the window which received the event.
clearEventPadButtonWindow :: MonadIO m => EventPadButton -> m () Source #
Set the value of the “window
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#window
getEventPadButtonWindow :: MonadIO m => EventPadButton -> m (Maybe Window) Source #
Get the value of the “window
” field.
When overloading is enabled, this is equivalent to
get
eventPadButton #window
setEventPadButtonWindow :: MonadIO m => EventPadButton -> Ptr Window -> m () Source #
Set the value of the “window
” field.
When overloading is enabled, this is equivalent to
set
eventPadButton [ #window:=
value ]