gi-gdk-3.0.16: Gdk bindings

Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte
License | LGPL-2.1
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com)
Safe Haskell | None
Language | Haskell2010

GI.Gdk.Structs.EventPadAxis

Contents

- Exported types
- Properties
  - group
  - index
  - mode
  - sendEvent
  - time
  - type
  - value
  - window

Description

Generated during `InputSourceTabletPad` interaction with tactile sensors.

Since: 3.22

Synopsis

- newtype EventPadAxis = EventPadAxis (ManagedPtr EventPadAxis)
- newZeroEventPadAxis :: MonadIO m => m EventPadAxis
- noEventPadAxis :: Maybe EventPadAxis
- getEventPadAxisGroup :: MonadIO m => EventPadAxis -> m Word32
- setEventPadAxisGroup :: MonadIO m => EventPadAxis -> Word32 -> m ()
- getEventPadAxisIndex :: MonadIO m => EventPadAxis -> m Word32
- setEventPadAxisIndex :: MonadIO m => EventPadAxis -> Word32 -> m ()
- getEventPadAxisMode :: MonadIO m => EventPadAxis -> m Word32
- setEventPadAxisMode :: MonadIO m => EventPadAxis -> Word32 -> m ()
- getEventPadAxisSendEvent :: MonadIO m => EventPadAxis -> m Int8
- setEventPadAxisSendEvent :: MonadIO m => EventPadAxis -> Int8 -> m ()
- getEventPadAxisTime :: MonadIO m => EventPadAxis -> m Word32
- setEventPadAxisTime :: MonadIO m => EventPadAxis -> Word32 -> m ()
- getEventPadAxisType :: MonadIO m => EventPadAxis -> m EventType
- setEventPadAxisType :: MonadIO m => EventPadAxis -> EventType -> m ()
- getEventPadAxisValue :: MonadIO m => EventPadAxis -> m Double
- setEventPadAxisValue :: MonadIO m => EventPadAxis -> Double -> m ()
- clearEventPadAxisWindow :: MonadIO m => EventPadAxis -> m ()
- getEventPadAxisWindow :: MonadIO m => EventPadAxis -> m (Maybe Window)
- setEventPadAxisWindow :: MonadIO m => EventPadAxis -> Ptr Window -> m ()

# Exported types

newtype EventPadAxis Source #

Memory-managed wrapper type.

Constructors

EventPadAxis (ManagedPtr EventPadAxis) |

Instances

WrappedPtr EventPadAxis Source # |
Instance details Defined in GI.Gdk.Structs.EventPadAxis Methods wrappedPtrCalloc :: IO (Ptr EventPadAxis) Source # wrappedPtrCopy :: EventPadAxis -> IO EventPadAxis Source # wrappedPtrFree :: Maybe (FunPtr (Ptr EventPadAxis -> IO ())) Source #
tag ~ AttrSet => Constructible EventPadAxis tag Source # |
Instance details Defined in GI.Gdk.Structs.EventPadAxis Methods new :: MonadIO m => (ManagedPtr EventPadAxis -> EventPadAxis) -> [AttrOp EventPadAxis tag] -> m EventPadAxis Source #

newZeroEventPadAxis :: MonadIO m => m EventPadAxis Source #

Construct a `EventPadAxis` struct initialized to zero.

noEventPadAxis :: Maybe EventPadAxis Source #

A convenience alias for `Nothing` :: `Maybe` `EventPadAxis`.

# Properties

## group

the pad group the ring/strip belongs to. A `InputSourceTabletPad` device may have one or more groups containing a set of buttons/rings/strips each.

getEventPadAxisGroup :: MonadIO m => EventPadAxis -> m Word32 Source #

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

    get eventPadAxis #group

setEventPadAxisGroup :: MonadIO m => EventPadAxis -> Word32 -> m () Source #

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

    set eventPadAxis [ #group := value ]

## index

number of strip/ring that was interacted. This number is 0-indexed.

getEventPadAxisIndex :: MonadIO m => EventPadAxis -> m Word32 Source #

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

    get eventPadAxis #index

setEventPadAxisIndex :: MonadIO m => EventPadAxis -> Word32 -> m () Source #

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

    set eventPadAxis [ #index := value ]

## mode

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

getEventPadAxisMode :: MonadIO m => EventPadAxis -> m Word32 Source #

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

    get eventPadAxis #mode

setEventPadAxisMode :: MonadIO m => EventPadAxis -> Word32 -> m () Source #

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

    set eventPadAxis [ #mode := value ]

## sendEvent

`True` if the event was sent explicitly.

getEventPadAxisSendEvent :: MonadIO m => EventPadAxis -> m Int8 Source #

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

    get eventPadAxis #sendEvent

setEventPadAxisSendEvent :: MonadIO m => EventPadAxis -> Int8 -> m () Source #

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

    set eventPadAxis [ #sendEvent := value ]

## time

the time of the event in milliseconds.

getEventPadAxisTime :: MonadIO m => EventPadAxis -> m Word32 Source #

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

    get eventPadAxis #time

setEventPadAxisTime :: MonadIO m => EventPadAxis -> Word32 -> m () Source #

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

    set eventPadAxis [ #time := value ]

## type

the type of the event (`EventTypePadRing` or `EventTypePadStrip`).

getEventPadAxisType :: MonadIO m => EventPadAxis -> m EventType Source #

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

    get eventPadAxis #type

setEventPadAxisType :: MonadIO m => EventPadAxis -> EventType -> m () Source #

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

    set eventPadAxis [ #type := value ]

## value

The current value for the given axis.

getEventPadAxisValue :: MonadIO m => EventPadAxis -> m Double Source #

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

    get eventPadAxis #value

setEventPadAxisValue :: MonadIO m => EventPadAxis -> Double -> m () Source #

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

    set eventPadAxis [ #value := value ]

## window

the window which received the event.

clearEventPadAxisWindow :: MonadIO m => EventPadAxis -> m () Source #

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

    clear #window

getEventPadAxisWindow :: MonadIO m => EventPadAxis -> m (Maybe Window) Source #

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

    get eventPadAxis #window

setEventPadAxisWindow :: MonadIO m => EventPadAxis -> Ptr Window -> m () Source #

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

    set eventPadAxis [ #window := value ]