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 |
Proximity events are generated when using GDK’s wrapper for the XInput extension. The XInput extension is an add-on for standard X that allows you to use nonstandard devices such as graphics tablets. A proximity event indicates that the stylus has moved in or out of contact with the tablet, or perhaps that the user’s finger has moved in or out of contact with a touch screen.
This event type will be used pretty rarely. It only is important for XInput aware programs that are drawing their own cursor.
- newtype EventProximity = EventProximity (ForeignPtr EventProximity)
- newZeroEventProximity :: MonadIO m => m EventProximity
- noEventProximity :: Maybe EventProximity
- eventProximityClearDevice :: MonadIO m => EventProximity -> m ()
- eventProximityDevice :: AttrLabelProxy "device"
- eventProximityReadDevice :: MonadIO m => EventProximity -> m (Maybe Device)
- eventProximityWriteDevice :: MonadIO m => EventProximity -> Ptr Device -> m ()
- eventProximityReadSendEvent :: MonadIO m => EventProximity -> m Int8
- eventProximitySendEvent :: AttrLabelProxy "sendEvent"
- eventProximityWriteSendEvent :: MonadIO m => EventProximity -> Int8 -> m ()
- eventProximityReadTime :: MonadIO m => EventProximity -> m Word32
- eventProximityTime :: AttrLabelProxy "time"
- eventProximityWriteTime :: MonadIO m => EventProximity -> Word32 -> m ()
- eventProximityReadType :: MonadIO m => EventProximity -> m EventType
- eventProximityType :: AttrLabelProxy "type"
- eventProximityWriteType :: MonadIO m => EventProximity -> EventType -> m ()
- eventProximityClearWindow :: MonadIO m => EventProximity -> m ()
- eventProximityReadWindow :: MonadIO m => EventProximity -> m (Maybe Window)
- eventProximityWindow :: AttrLabelProxy "window"
- eventProximityWriteWindow :: MonadIO m => EventProximity -> Ptr Window -> m ()
Exported types
newtype EventProximity Source
(~) AttrOpTag tag AttrSet => Constructible EventProximity tag | |
((~) * info (ResolveEventProximityMethod t EventProximity), MethodInfo * info EventProximity p) => IsLabelProxy t (EventProximity -> p) | |
type AttributeList EventProximity |
newZeroEventProximity :: MonadIO m => m EventProximity Source
Construct a EventProximity
struct initialized to zero.
Properties
Device
eventProximityClearDevice :: MonadIO m => EventProximity -> m () Source
eventProximityDevice :: AttrLabelProxy "device" Source
eventProximityReadDevice :: MonadIO m => EventProximity -> m (Maybe Device) Source
eventProximityWriteDevice :: MonadIO m => EventProximity -> Ptr Device -> m () Source
SendEvent
eventProximityReadSendEvent :: MonadIO m => EventProximity -> m Int8 Source
eventProximitySendEvent :: AttrLabelProxy "sendEvent" Source
eventProximityWriteSendEvent :: MonadIO m => EventProximity -> Int8 -> m () Source
Time
eventProximityReadTime :: MonadIO m => EventProximity -> m Word32 Source
eventProximityTime :: AttrLabelProxy "time" Source
eventProximityWriteTime :: MonadIO m => EventProximity -> Word32 -> m () Source
Type
eventProximityReadType :: MonadIO m => EventProximity -> m EventType Source
eventProximityType :: AttrLabelProxy "type" Source
eventProximityWriteType :: MonadIO m => EventProximity -> EventType -> m () Source
Window
eventProximityClearWindow :: MonadIO m => EventProximity -> m () Source
eventProximityReadWindow :: MonadIO m => EventProximity -> m (Maybe Window) Source
eventProximityWindow :: AttrLabelProxy "window" Source
eventProximityWriteWindow :: MonadIO m => EventProximity -> Ptr Window -> m () Source