gi-gdk-3.0.21: Gdk bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (inaki@blueleaf.cc)
Safe HaskellNone
LanguageHaskell2010

GI.Gdk.Structs.EventPadButton

Contents

Description

Generated during InputSourceTabletPad button presses and releases.

Since: 3.22

Synopsis

Exported types

newZeroEventPadButton :: MonadIO m => m EventPadButton Source #

Construct a EventPadButton struct initialized to zero.

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

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 ]