gi-gdk3-3.0.30: Gdk 3.x 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.EventPadGroupMode

Contents

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

Description

Generated during `InputSourceTabletPad` mode switches in a group.

Since: 3.22

Synopsis

- newtype EventPadGroupMode = EventPadGroupMode (ManagedPtr EventPadGroupMode)
- newZeroEventPadGroupMode :: MonadIO m => m EventPadGroupMode
- getEventPadGroupModeGroup :: MonadIO m => EventPadGroupMode -> m Word32
- setEventPadGroupModeGroup :: MonadIO m => EventPadGroupMode -> Word32 -> m ()
- getEventPadGroupModeMode :: MonadIO m => EventPadGroupMode -> m Word32
- setEventPadGroupModeMode :: MonadIO m => EventPadGroupMode -> Word32 -> m ()
- getEventPadGroupModeSendEvent :: MonadIO m => EventPadGroupMode -> m Int8
- setEventPadGroupModeSendEvent :: MonadIO m => EventPadGroupMode -> Int8 -> m ()
- getEventPadGroupModeTime :: MonadIO m => EventPadGroupMode -> m Word32
- setEventPadGroupModeTime :: MonadIO m => EventPadGroupMode -> Word32 -> m ()
- getEventPadGroupModeType :: MonadIO m => EventPadGroupMode -> m EventType
- setEventPadGroupModeType :: MonadIO m => EventPadGroupMode -> EventType -> m ()
- clearEventPadGroupModeWindow :: MonadIO m => EventPadGroupMode -> m ()
- getEventPadGroupModeWindow :: MonadIO m => EventPadGroupMode -> m (Maybe Window)
- setEventPadGroupModeWindow :: MonadIO m => EventPadGroupMode -> Ptr Window -> m ()

# Exported types

newtype EventPadGroupMode Source #

Memory-managed wrapper type.

Constructors

EventPadGroupMode (ManagedPtr EventPadGroupMode) |

#### Instances

Instances details

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

newZeroEventPadGroupMode :: MonadIO m => m EventPadGroupMode Source #

Construct a `EventPadGroupMode` struct initialized to zero.

# Methods

# Properties

## group

the pad group that is switching mode. A `InputSourceTabletPad` device may have one or more groups containing a set of buttons/rings/strips each.

getEventPadGroupModeGroup :: MonadIO m => EventPadGroupMode -> m Word32 Source #

Get the value of the “`group`” field. When overloading is enabled, this is equivalent to

    get eventPadGroupMode #group

setEventPadGroupModeGroup :: MonadIO m => EventPadGroupMode -> Word32 -> m () Source #

Set the value of the “`group`” field. When overloading is enabled, this is equivalent to

    set eventPadGroupMode [ #group := value ]

## mode

The new mode of `group`. Different groups in a `InputSourceTabletPad` device may have different current modes.

getEventPadGroupModeMode :: MonadIO m => EventPadGroupMode -> m Word32 Source #

Get the value of the “`mode`” field. When overloading is enabled, this is equivalent to

    get eventPadGroupMode #mode

setEventPadGroupModeMode :: MonadIO m => EventPadGroupMode -> Word32 -> m () Source #

Set the value of the “`mode`” field. When overloading is enabled, this is equivalent to

    set eventPadGroupMode [ #mode := value ]

## sendEvent

`True` if the event was sent explicitly.

getEventPadGroupModeSendEvent :: MonadIO m => EventPadGroupMode -> m Int8 Source #

Get the value of the “`send_event`” field. When overloading is enabled, this is equivalent to

    get eventPadGroupMode #sendEvent

setEventPadGroupModeSendEvent :: MonadIO m => EventPadGroupMode -> Int8 -> m () Source #

Set the value of the “`send_event`” field. When overloading is enabled, this is equivalent to

    set eventPadGroupMode [ #sendEvent := value ]

## time

the time of the event in milliseconds.

getEventPadGroupModeTime :: MonadIO m => EventPadGroupMode -> m Word32 Source #

Get the value of the “`time`” field. When overloading is enabled, this is equivalent to

    get eventPadGroupMode #time

setEventPadGroupModeTime :: MonadIO m => EventPadGroupMode -> Word32 -> m () Source #

Set the value of the “`time`” field. When overloading is enabled, this is equivalent to

    set eventPadGroupMode [ #time := value ]

## type

the type of the event (`EventTypePadGroupMode`).

getEventPadGroupModeType :: MonadIO m => EventPadGroupMode -> m EventType Source #

Get the value of the “`type`” field. When overloading is enabled, this is equivalent to

    get eventPadGroupMode #type

setEventPadGroupModeType :: MonadIO m => EventPadGroupMode -> EventType -> m () Source #

Set the value of the “`type`” field. When overloading is enabled, this is equivalent to

    set eventPadGroupMode [ #type := value ]

## window

the window which received the event.

clearEventPadGroupModeWindow :: MonadIO m => EventPadGroupMode -> m () Source #

Set the value of the “`window`” field to `Nothing`. When overloading is enabled, this is equivalent to

    clear #window

getEventPadGroupModeWindow :: MonadIO m => EventPadGroupMode -> m (Maybe Window) Source #

Get the value of the “`window`” field. When overloading is enabled, this is equivalent to

    get eventPadGroupMode #window

setEventPadGroupModeWindow :: MonadIO m => EventPadGroupMode -> Ptr Window -> m () Source #

Set the value of the “`window`” field. When overloading is enabled, this is equivalent to

    set eventPadGroupMode [ #window := value ]