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 |
Generated from button presses for the buttons 4 to 7. Wheel mice are usually configured to generate button press events for buttons 4 and 5 when the wheel is turned.
Some GDK backends can also generate “smooth” scroll events, which can be recognized by the %GDK_SCROLL_SMOOTH scroll direction. For these, the scroll deltas can be obtained with gdk_event_get_scroll_deltas().
- newtype EventScroll = EventScroll (ForeignPtr EventScroll)
- newZeroEventScroll :: MonadIO m => m EventScroll
- noEventScroll :: Maybe EventScroll
- eventScrollDeltaX :: AttrLabelProxy "deltaX"
- eventScrollReadDeltaX :: MonadIO m => EventScroll -> m Double
- eventScrollWriteDeltaX :: MonadIO m => EventScroll -> Double -> m ()
- eventScrollDeltaY :: AttrLabelProxy "deltaY"
- eventScrollReadDeltaY :: MonadIO m => EventScroll -> m Double
- eventScrollWriteDeltaY :: MonadIO m => EventScroll -> Double -> m ()
- eventScrollClearDevice :: MonadIO m => EventScroll -> m ()
- eventScrollDevice :: AttrLabelProxy "device"
- eventScrollReadDevice :: MonadIO m => EventScroll -> m (Maybe Device)
- eventScrollWriteDevice :: MonadIO m => EventScroll -> Ptr Device -> m ()
- eventScrollDirection :: AttrLabelProxy "direction"
- eventScrollReadDirection :: MonadIO m => EventScroll -> m ScrollDirection
- eventScrollWriteDirection :: MonadIO m => EventScroll -> ScrollDirection -> m ()
- eventScrollReadSendEvent :: MonadIO m => EventScroll -> m Int8
- eventScrollSendEvent :: AttrLabelProxy "sendEvent"
- eventScrollWriteSendEvent :: MonadIO m => EventScroll -> Int8 -> m ()
- eventScrollReadState :: MonadIO m => EventScroll -> m [ModifierType]
- eventScrollState :: AttrLabelProxy "state"
- eventScrollWriteState :: MonadIO m => EventScroll -> [ModifierType] -> m ()
- eventScrollReadTime :: MonadIO m => EventScroll -> m Word32
- eventScrollTime :: AttrLabelProxy "time"
- eventScrollWriteTime :: MonadIO m => EventScroll -> Word32 -> m ()
- eventScrollReadType :: MonadIO m => EventScroll -> m EventType
- eventScrollType :: AttrLabelProxy "type"
- eventScrollWriteType :: MonadIO m => EventScroll -> EventType -> m ()
- eventScrollClearWindow :: MonadIO m => EventScroll -> m ()
- eventScrollReadWindow :: MonadIO m => EventScroll -> m (Maybe Window)
- eventScrollWindow :: AttrLabelProxy "window"
- eventScrollWriteWindow :: MonadIO m => EventScroll -> Ptr Window -> m ()
- eventScrollReadX :: MonadIO m => EventScroll -> m Double
- eventScrollWriteX :: MonadIO m => EventScroll -> Double -> m ()
- eventScrollX :: AttrLabelProxy "x"
- eventScrollReadXRoot :: MonadIO m => EventScroll -> m Double
- eventScrollWriteXRoot :: MonadIO m => EventScroll -> Double -> m ()
- eventScrollXRoot :: AttrLabelProxy "xRoot"
- eventScrollReadY :: MonadIO m => EventScroll -> m Double
- eventScrollWriteY :: MonadIO m => EventScroll -> Double -> m ()
- eventScrollY :: AttrLabelProxy "y"
- eventScrollReadYRoot :: MonadIO m => EventScroll -> m Double
- eventScrollWriteYRoot :: MonadIO m => EventScroll -> Double -> m ()
- eventScrollYRoot :: AttrLabelProxy "yRoot"
Exported types
newtype EventScroll Source
(~) AttrOpTag tag AttrSet => Constructible EventScroll tag | |
((~) * info (ResolveEventScrollMethod t EventScroll), MethodInfo * info EventScroll p) => IsLabelProxy t (EventScroll -> p) | |
type AttributeList EventScroll |
newZeroEventScroll :: MonadIO m => m EventScroll Source
Construct a EventScroll
struct initialized to zero.
Properties
DeltaX
eventScrollDeltaX :: AttrLabelProxy "deltaX" Source
eventScrollReadDeltaX :: MonadIO m => EventScroll -> m Double Source
eventScrollWriteDeltaX :: MonadIO m => EventScroll -> Double -> m () Source
DeltaY
eventScrollDeltaY :: AttrLabelProxy "deltaY" Source
eventScrollReadDeltaY :: MonadIO m => EventScroll -> m Double Source
eventScrollWriteDeltaY :: MonadIO m => EventScroll -> Double -> m () Source
Device
eventScrollClearDevice :: MonadIO m => EventScroll -> m () Source
eventScrollDevice :: AttrLabelProxy "device" Source
eventScrollReadDevice :: MonadIO m => EventScroll -> m (Maybe Device) Source
eventScrollWriteDevice :: MonadIO m => EventScroll -> Ptr Device -> m () Source
Direction
eventScrollDirection :: AttrLabelProxy "direction" Source
eventScrollReadDirection :: MonadIO m => EventScroll -> m ScrollDirection Source
eventScrollWriteDirection :: MonadIO m => EventScroll -> ScrollDirection -> m () Source
SendEvent
eventScrollReadSendEvent :: MonadIO m => EventScroll -> m Int8 Source
eventScrollSendEvent :: AttrLabelProxy "sendEvent" Source
eventScrollWriteSendEvent :: MonadIO m => EventScroll -> Int8 -> m () Source
State
eventScrollReadState :: MonadIO m => EventScroll -> m [ModifierType] Source
eventScrollState :: AttrLabelProxy "state" Source
eventScrollWriteState :: MonadIO m => EventScroll -> [ModifierType] -> m () Source
Time
eventScrollReadTime :: MonadIO m => EventScroll -> m Word32 Source
eventScrollTime :: AttrLabelProxy "time" Source
eventScrollWriteTime :: MonadIO m => EventScroll -> Word32 -> m () Source
Type
eventScrollReadType :: MonadIO m => EventScroll -> m EventType Source
eventScrollType :: AttrLabelProxy "type" Source
eventScrollWriteType :: MonadIO m => EventScroll -> EventType -> m () Source
Window
eventScrollClearWindow :: MonadIO m => EventScroll -> m () Source
eventScrollReadWindow :: MonadIO m => EventScroll -> m (Maybe Window) Source
eventScrollWindow :: AttrLabelProxy "window" Source
eventScrollWriteWindow :: MonadIO m => EventScroll -> Ptr Window -> m () Source
X
eventScrollReadX :: MonadIO m => EventScroll -> m Double Source
eventScrollWriteX :: MonadIO m => EventScroll -> Double -> m () Source
eventScrollX :: AttrLabelProxy "x" Source
XRoot
eventScrollReadXRoot :: MonadIO m => EventScroll -> m Double Source
eventScrollWriteXRoot :: MonadIO m => EventScroll -> Double -> m () Source
eventScrollXRoot :: AttrLabelProxy "xRoot" Source
Y
eventScrollReadY :: MonadIO m => EventScroll -> m Double Source
eventScrollWriteY :: MonadIO m => EventScroll -> Double -> m () Source
eventScrollY :: AttrLabelProxy "y" Source
YRoot
eventScrollReadYRoot :: MonadIO m => EventScroll -> m Double Source
eventScrollWriteYRoot :: MonadIO m => EventScroll -> Double -> m () Source
eventScrollYRoot :: AttrLabelProxy "yRoot" Source