gi-gdk-3.0.29: Gdk bindings

Copyright | Will Thompson and Iñaki García Etxebarria
License | LGPL-2.1
Maintainer | Iñaki García Etxebarria
Safe Haskell | None
Language | Haskell2010

GI.Gdk.Structs.EventPadButton

Contents

- Exported types
- Methods
- Properties
  - button
  - group
  - mode
  - sendEvent
  - time
  - type
  - window

Description

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.

Constructors

EventPadButton (ManagedPtr EventPadButton) |

#### Instances

Instances details

Eq EventPadButton Source # |
Instance details Defined in GI.Gdk.Structs.EventPadButton Methods (==) :: EventPadButton -> EventPadButton -> Bool Source # (/=) :: EventPadButton -> EventPadButton -> Bool Source #
BoxedPtr EventPadButton Source # |
Instance details Defined in GI.Gdk.Structs.EventPadButton Methods boxedPtrCopy :: EventPadButton -> IO EventPadButton Source # boxedPtrFree :: EventPadButton -> IO () Source #
CallocPtr EventPadButton Source # |
Instance details Defined in GI.Gdk.Structs.EventPadButton Methods boxedPtrCalloc :: IO (Ptr EventPadButton) Source #
ManagedPtrNewtype EventPadButton Source # |
Instance details Defined in GI.Gdk.Structs.EventPadButton Methods toManagedPtr :: EventPadButton -> ManagedPtr EventPadButton Source #
tag ~ 'AttrSet => Constructible EventPadButton tag Source # |
Instance details Defined in GI.Gdk.Structs.EventPadButton Methods new :: MonadIO m => (ManagedPtr EventPadButton -> EventPadButton) -> [AttrOp EventPadButton tag] -> m EventPadButton Source #

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 ]