Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (inaki@blueleaf.cc) |
Safe Haskell | None |
Language | Haskell2010 |
Generated during touchpad swipe gestures.
Synopsis
- newtype EventTouchpadSwipe = EventTouchpadSwipe (ManagedPtr EventTouchpadSwipe)
- newZeroEventTouchpadSwipe :: MonadIO m => m EventTouchpadSwipe
- noEventTouchpadSwipe :: Maybe EventTouchpadSwipe
- getEventTouchpadSwipeDx :: MonadIO m => EventTouchpadSwipe -> m Double
- setEventTouchpadSwipeDx :: MonadIO m => EventTouchpadSwipe -> Double -> m ()
- getEventTouchpadSwipeDy :: MonadIO m => EventTouchpadSwipe -> m Double
- setEventTouchpadSwipeDy :: MonadIO m => EventTouchpadSwipe -> Double -> m ()
- getEventTouchpadSwipeNFingers :: MonadIO m => EventTouchpadSwipe -> m Int8
- setEventTouchpadSwipeNFingers :: MonadIO m => EventTouchpadSwipe -> Int8 -> m ()
- getEventTouchpadSwipePhase :: MonadIO m => EventTouchpadSwipe -> m Int8
- setEventTouchpadSwipePhase :: MonadIO m => EventTouchpadSwipe -> Int8 -> m ()
- getEventTouchpadSwipeSendEvent :: MonadIO m => EventTouchpadSwipe -> m Int8
- setEventTouchpadSwipeSendEvent :: MonadIO m => EventTouchpadSwipe -> Int8 -> m ()
- getEventTouchpadSwipeState :: MonadIO m => EventTouchpadSwipe -> m [ModifierType]
- setEventTouchpadSwipeState :: MonadIO m => EventTouchpadSwipe -> [ModifierType] -> m ()
- getEventTouchpadSwipeTime :: MonadIO m => EventTouchpadSwipe -> m Word32
- setEventTouchpadSwipeTime :: MonadIO m => EventTouchpadSwipe -> Word32 -> m ()
- getEventTouchpadSwipeType :: MonadIO m => EventTouchpadSwipe -> m EventType
- setEventTouchpadSwipeType :: MonadIO m => EventTouchpadSwipe -> EventType -> m ()
- clearEventTouchpadSwipeWindow :: MonadIO m => EventTouchpadSwipe -> m ()
- getEventTouchpadSwipeWindow :: MonadIO m => EventTouchpadSwipe -> m (Maybe Window)
- setEventTouchpadSwipeWindow :: MonadIO m => EventTouchpadSwipe -> Ptr Window -> m ()
- getEventTouchpadSwipeX :: MonadIO m => EventTouchpadSwipe -> m Double
- setEventTouchpadSwipeX :: MonadIO m => EventTouchpadSwipe -> Double -> m ()
- getEventTouchpadSwipeXRoot :: MonadIO m => EventTouchpadSwipe -> m Double
- setEventTouchpadSwipeXRoot :: MonadIO m => EventTouchpadSwipe -> Double -> m ()
- getEventTouchpadSwipeY :: MonadIO m => EventTouchpadSwipe -> m Double
- setEventTouchpadSwipeY :: MonadIO m => EventTouchpadSwipe -> Double -> m ()
- getEventTouchpadSwipeYRoot :: MonadIO m => EventTouchpadSwipe -> m Double
- setEventTouchpadSwipeYRoot :: MonadIO m => EventTouchpadSwipe -> Double -> m ()
Exported types
newtype EventTouchpadSwipe Source #
Memory-managed wrapper type.
Instances
WrappedPtr EventTouchpadSwipe Source # | |
tag ~ AttrSet => Constructible EventTouchpadSwipe tag Source # | |
Defined in GI.Gdk.Structs.EventTouchpadSwipe new :: MonadIO m => (ManagedPtr EventTouchpadSwipe -> EventTouchpadSwipe) -> [AttrOp EventTouchpadSwipe tag] -> m EventTouchpadSwipe # |
newZeroEventTouchpadSwipe :: MonadIO m => m EventTouchpadSwipe Source #
Construct a EventTouchpadSwipe
struct initialized to zero.
noEventTouchpadSwipe :: Maybe EventTouchpadSwipe Source #
A convenience alias for Nothing
:: Maybe
EventTouchpadSwipe
.
Properties
dx
Movement delta in the X axis of the swipe focal point
getEventTouchpadSwipeDx :: MonadIO m => EventTouchpadSwipe -> m Double Source #
Get the value of the “dx
” field.
When overloading is enabled, this is equivalent to
get
eventTouchpadSwipe #dx
setEventTouchpadSwipeDx :: MonadIO m => EventTouchpadSwipe -> Double -> m () Source #
Set the value of the “dx
” field.
When overloading is enabled, this is equivalent to
set
eventTouchpadSwipe [ #dx:=
value ]
dy
Movement delta in the Y axis of the swipe focal point
getEventTouchpadSwipeDy :: MonadIO m => EventTouchpadSwipe -> m Double Source #
Get the value of the “dy
” field.
When overloading is enabled, this is equivalent to
get
eventTouchpadSwipe #dy
setEventTouchpadSwipeDy :: MonadIO m => EventTouchpadSwipe -> Double -> m () Source #
Set the value of the “dy
” field.
When overloading is enabled, this is equivalent to
set
eventTouchpadSwipe [ #dy:=
value ]
nFingers
The number of fingers triggering the swipe
getEventTouchpadSwipeNFingers :: MonadIO m => EventTouchpadSwipe -> m Int8 Source #
Get the value of the “n_fingers
” field.
When overloading is enabled, this is equivalent to
get
eventTouchpadSwipe #nFingers
setEventTouchpadSwipeNFingers :: MonadIO m => EventTouchpadSwipe -> Int8 -> m () Source #
Set the value of the “n_fingers
” field.
When overloading is enabled, this is equivalent to
set
eventTouchpadSwipe [ #nFingers:=
value ]
phase
the current phase of the gesture
getEventTouchpadSwipePhase :: MonadIO m => EventTouchpadSwipe -> m Int8 Source #
Get the value of the “phase
” field.
When overloading is enabled, this is equivalent to
get
eventTouchpadSwipe #phase
setEventTouchpadSwipePhase :: MonadIO m => EventTouchpadSwipe -> Int8 -> m () Source #
Set the value of the “phase
” field.
When overloading is enabled, this is equivalent to
set
eventTouchpadSwipe [ #phase:=
value ]
sendEvent
True
if the event was sent explicitly
getEventTouchpadSwipeSendEvent :: MonadIO m => EventTouchpadSwipe -> m Int8 Source #
Get the value of the “send_event
” field.
When overloading is enabled, this is equivalent to
get
eventTouchpadSwipe #sendEvent
setEventTouchpadSwipeSendEvent :: MonadIO m => EventTouchpadSwipe -> Int8 -> m () Source #
Set the value of the “send_event
” field.
When overloading is enabled, this is equivalent to
set
eventTouchpadSwipe [ #sendEvent:=
value ]
state
a bit-mask representing the state of
the modifier keys (e.g. Control, Shift and Alt) and the pointer
buttons. See ModifierType
.
getEventTouchpadSwipeState :: MonadIO m => EventTouchpadSwipe -> m [ModifierType] Source #
Get the value of the “state
” field.
When overloading is enabled, this is equivalent to
get
eventTouchpadSwipe #state
setEventTouchpadSwipeState :: MonadIO m => EventTouchpadSwipe -> [ModifierType] -> m () Source #
Set the value of the “state
” field.
When overloading is enabled, this is equivalent to
set
eventTouchpadSwipe [ #state:=
value ]
time
the time of the event in milliseconds
getEventTouchpadSwipeTime :: MonadIO m => EventTouchpadSwipe -> m Word32 Source #
Get the value of the “time
” field.
When overloading is enabled, this is equivalent to
get
eventTouchpadSwipe #time
setEventTouchpadSwipeTime :: MonadIO m => EventTouchpadSwipe -> Word32 -> m () Source #
Set the value of the “time
” field.
When overloading is enabled, this is equivalent to
set
eventTouchpadSwipe [ #time:=
value ]
type
the type of the event (EventTypeTouchpadSwipe
)
getEventTouchpadSwipeType :: MonadIO m => EventTouchpadSwipe -> m EventType Source #
Get the value of the “type
” field.
When overloading is enabled, this is equivalent to
get
eventTouchpadSwipe #type
setEventTouchpadSwipeType :: MonadIO m => EventTouchpadSwipe -> EventType -> m () Source #
Set the value of the “type
” field.
When overloading is enabled, this is equivalent to
set
eventTouchpadSwipe [ #type:=
value ]
window
the window which received the event
clearEventTouchpadSwipeWindow :: MonadIO m => EventTouchpadSwipe -> m () Source #
Set the value of the “window
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#window
getEventTouchpadSwipeWindow :: MonadIO m => EventTouchpadSwipe -> m (Maybe Window) Source #
Get the value of the “window
” field.
When overloading is enabled, this is equivalent to
get
eventTouchpadSwipe #window
setEventTouchpadSwipeWindow :: MonadIO m => EventTouchpadSwipe -> Ptr Window -> m () Source #
Set the value of the “window
” field.
When overloading is enabled, this is equivalent to
set
eventTouchpadSwipe [ #window:=
value ]
x
The X coordinate of the pointer
getEventTouchpadSwipeX :: MonadIO m => EventTouchpadSwipe -> m Double Source #
Get the value of the “x
” field.
When overloading is enabled, this is equivalent to
get
eventTouchpadSwipe #x
setEventTouchpadSwipeX :: MonadIO m => EventTouchpadSwipe -> Double -> m () Source #
Set the value of the “x
” field.
When overloading is enabled, this is equivalent to
set
eventTouchpadSwipe [ #x:=
value ]
xRoot
The X coordinate of the pointer, relative to the root of the screen.
getEventTouchpadSwipeXRoot :: MonadIO m => EventTouchpadSwipe -> m Double Source #
Get the value of the “x_root
” field.
When overloading is enabled, this is equivalent to
get
eventTouchpadSwipe #xRoot
setEventTouchpadSwipeXRoot :: MonadIO m => EventTouchpadSwipe -> Double -> m () Source #
Set the value of the “x_root
” field.
When overloading is enabled, this is equivalent to
set
eventTouchpadSwipe [ #xRoot:=
value ]
y
The Y coordinate of the pointer
getEventTouchpadSwipeY :: MonadIO m => EventTouchpadSwipe -> m Double Source #
Get the value of the “y
” field.
When overloading is enabled, this is equivalent to
get
eventTouchpadSwipe #y
setEventTouchpadSwipeY :: MonadIO m => EventTouchpadSwipe -> Double -> m () Source #
Set the value of the “y
” field.
When overloading is enabled, this is equivalent to
set
eventTouchpadSwipe [ #y:=
value ]
yRoot
The Y coordinate of the pointer, relative to the root of the screen.
getEventTouchpadSwipeYRoot :: MonadIO m => EventTouchpadSwipe -> m Double Source #
Get the value of the “y_root
” field.
When overloading is enabled, this is equivalent to
get
eventTouchpadSwipe #yRoot
setEventTouchpadSwipeYRoot :: MonadIO m => EventTouchpadSwipe -> Double -> m () Source #
Set the value of the “y_root
” field.
When overloading is enabled, this is equivalent to
set
eventTouchpadSwipe [ #yRoot:=
value ]