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.EventPadAxis

Contents

Description

Generated during InputSourceTabletPad interaction with tactile sensors.

Since: 3.22

Synopsis

Exported types

newZeroEventPadAxis :: MonadIO m => m EventPadAxis Source #

Construct a EventPadAxis struct initialized to zero.

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 ]