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 |
- Exported types
- Methods
- gestureGetBoundingBox
- gestureGetBoundingBoxCenter
- gestureGetDevice
- gestureGetGroup
- gestureGetLastEvent
- gestureGetLastUpdatedSequence
- gestureGetPoint
- gestureGetSequenceState
- gestureGetSequences
- gestureGetWindow
- gestureGroup
- gestureHandlesSequence
- gestureIsActive
- gestureIsGroupedWith
- gestureIsRecognized
- gestureSetSequenceState
- gestureSetState
- gestureSetWindow
- gestureUngroup
- Properties
- Signals
- newtype Gesture = Gesture (ForeignPtr Gesture)
- class GObject o => GestureK o
- toGesture :: GestureK o => o -> IO Gesture
- noGesture :: Maybe Gesture
- gestureGetBoundingBox :: (MonadIO m, GestureK a) => a -> m (Bool, RectangleInt)
- gestureGetBoundingBoxCenter :: (MonadIO m, GestureK a) => a -> m (Bool, Double, Double)
- gestureGetDevice :: (MonadIO m, GestureK a) => a -> m Device
- gestureGetGroup :: (MonadIO m, GestureK a) => a -> m [Gesture]
- gestureGetLastEvent :: (MonadIO m, GestureK a) => a -> EventSequence -> m Event
- gestureGetLastUpdatedSequence :: (MonadIO m, GestureK a) => a -> m EventSequence
- gestureGetPoint :: (MonadIO m, GestureK a) => a -> Maybe EventSequence -> m (Bool, Double, Double)
- gestureGetSequenceState :: (MonadIO m, GestureK a) => a -> EventSequence -> m EventSequenceState
- gestureGetSequences :: (MonadIO m, GestureK a) => a -> m [EventSequence]
- gestureGetWindow :: (MonadIO m, GestureK a) => a -> m Window
- gestureGroup :: (MonadIO m, GestureK a, GestureK b) => a -> b -> m ()
- gestureHandlesSequence :: (MonadIO m, GestureK a) => a -> EventSequence -> m Bool
- gestureIsActive :: (MonadIO m, GestureK a) => a -> m Bool
- gestureIsGroupedWith :: (MonadIO m, GestureK a, GestureK b) => a -> b -> m Bool
- gestureIsRecognized :: (MonadIO m, GestureK a) => a -> m Bool
- gestureSetSequenceState :: (MonadIO m, GestureK a) => a -> EventSequence -> EventSequenceState -> m Bool
- gestureSetState :: (MonadIO m, GestureK a) => a -> EventSequenceState -> m Bool
- gestureSetWindow :: (MonadIO m, GestureK a, WindowK b) => a -> Maybe b -> m ()
- gestureUngroup :: (MonadIO m, GestureK a) => a -> m ()
- data GestureNPointsPropertyInfo
- constructGestureNPoints :: Word32 -> IO ([Char], GValue)
- getGestureNPoints :: (MonadIO m, GestureK o) => o -> m Word32
- data GestureWindowPropertyInfo
- constructGestureWindow :: WindowK a => a -> IO ([Char], GValue)
- getGestureWindow :: (MonadIO m, GestureK o) => o -> m Window
- setGestureWindow :: (MonadIO m, GestureK o, WindowK a) => o -> a -> m ()
- type GestureBeginCallback = EventSequence -> IO ()
- type GestureBeginCallbackC = Ptr () -> Ptr EventSequence -> Ptr () -> IO ()
- data GestureBeginSignalInfo
- afterGestureBegin :: (GObject a, MonadIO m) => a -> GestureBeginCallback -> m SignalHandlerId
- gestureBeginCallbackWrapper :: GestureBeginCallback -> Ptr () -> Ptr EventSequence -> Ptr () -> IO ()
- gestureBeginClosure :: GestureBeginCallback -> IO Closure
- mkGestureBeginCallback :: GestureBeginCallbackC -> IO (FunPtr GestureBeginCallbackC)
- noGestureBeginCallback :: Maybe GestureBeginCallback
- onGestureBegin :: (GObject a, MonadIO m) => a -> GestureBeginCallback -> m SignalHandlerId
- type GestureCancelCallback = EventSequence -> IO ()
- type GestureCancelCallbackC = Ptr () -> Ptr EventSequence -> Ptr () -> IO ()
- data GestureCancelSignalInfo
- afterGestureCancel :: (GObject a, MonadIO m) => a -> GestureCancelCallback -> m SignalHandlerId
- gestureCancelCallbackWrapper :: GestureCancelCallback -> Ptr () -> Ptr EventSequence -> Ptr () -> IO ()
- gestureCancelClosure :: GestureCancelCallback -> IO Closure
- mkGestureCancelCallback :: GestureCancelCallbackC -> IO (FunPtr GestureCancelCallbackC)
- noGestureCancelCallback :: Maybe GestureCancelCallback
- onGestureCancel :: (GObject a, MonadIO m) => a -> GestureCancelCallback -> m SignalHandlerId
- type GestureEndCallback = EventSequence -> IO ()
- type GestureEndCallbackC = Ptr () -> Ptr EventSequence -> Ptr () -> IO ()
- data GestureEndSignalInfo
- afterGestureEnd :: (GObject a, MonadIO m) => a -> GestureEndCallback -> m SignalHandlerId
- gestureEndCallbackWrapper :: GestureEndCallback -> Ptr () -> Ptr EventSequence -> Ptr () -> IO ()
- gestureEndClosure :: GestureEndCallback -> IO Closure
- mkGestureEndCallback :: GestureEndCallbackC -> IO (FunPtr GestureEndCallbackC)
- noGestureEndCallback :: Maybe GestureEndCallback
- onGestureEnd :: (GObject a, MonadIO m) => a -> GestureEndCallback -> m SignalHandlerId
- type GestureSequenceStateChangedCallback = EventSequence -> EventSequenceState -> IO ()
- type GestureSequenceStateChangedCallbackC = Ptr () -> Ptr EventSequence -> CUInt -> Ptr () -> IO ()
- data GestureSequenceStateChangedSignalInfo
- afterGestureSequenceStateChanged :: (GObject a, MonadIO m) => a -> GestureSequenceStateChangedCallback -> m SignalHandlerId
- gestureSequenceStateChangedCallbackWrapper :: GestureSequenceStateChangedCallback -> Ptr () -> Ptr EventSequence -> CUInt -> Ptr () -> IO ()
- gestureSequenceStateChangedClosure :: GestureSequenceStateChangedCallback -> IO Closure
- mkGestureSequenceStateChangedCallback :: GestureSequenceStateChangedCallbackC -> IO (FunPtr GestureSequenceStateChangedCallbackC)
- noGestureSequenceStateChangedCallback :: Maybe GestureSequenceStateChangedCallback
- onGestureSequenceStateChanged :: (GObject a, MonadIO m) => a -> GestureSequenceStateChangedCallback -> m SignalHandlerId
- type GestureUpdateCallback = EventSequence -> IO ()
- type GestureUpdateCallbackC = Ptr () -> Ptr EventSequence -> Ptr () -> IO ()
- data GestureUpdateSignalInfo
- afterGestureUpdate :: (GObject a, MonadIO m) => a -> GestureUpdateCallback -> m SignalHandlerId
- gestureUpdateCallbackWrapper :: GestureUpdateCallback -> Ptr () -> Ptr EventSequence -> Ptr () -> IO ()
- gestureUpdateClosure :: GestureUpdateCallback -> IO Closure
- mkGestureUpdateCallback :: GestureUpdateCallbackC -> IO (FunPtr GestureUpdateCallbackC)
- noGestureUpdateCallback :: Maybe GestureUpdateCallback
- onGestureUpdate :: (GObject a, MonadIO m) => a -> GestureUpdateCallback -> m SignalHandlerId
Exported types
GObject Gesture Source | |
type ParentTypes Gesture Source | |
type AttributeList Gesture Source | |
type SignalList Gesture Source |
Methods
gestureGetBoundingBox
gestureGetBoundingBox :: (MonadIO m, GestureK a) => a -> m (Bool, RectangleInt) Source
gestureGetBoundingBoxCenter
gestureGetDevice
gestureGetDevice :: (MonadIO m, GestureK a) => a -> m Device Source
gestureGetGroup
gestureGetGroup :: (MonadIO m, GestureK a) => a -> m [Gesture] Source
gestureGetLastEvent
gestureGetLastEvent :: (MonadIO m, GestureK a) => a -> EventSequence -> m Event Source
gestureGetLastUpdatedSequence
gestureGetLastUpdatedSequence :: (MonadIO m, GestureK a) => a -> m EventSequence Source
gestureGetPoint
gestureGetPoint :: (MonadIO m, GestureK a) => a -> Maybe EventSequence -> m (Bool, Double, Double) Source
gestureGetSequenceState
gestureGetSequenceState :: (MonadIO m, GestureK a) => a -> EventSequence -> m EventSequenceState Source
gestureGetSequences
gestureGetSequences :: (MonadIO m, GestureK a) => a -> m [EventSequence] Source
gestureGetWindow
gestureGetWindow :: (MonadIO m, GestureK a) => a -> m Window Source
gestureGroup
gestureGroup :: (MonadIO m, GestureK a, GestureK b) => a -> b -> m () Source
gestureHandlesSequence
gestureHandlesSequence :: (MonadIO m, GestureK a) => a -> EventSequence -> m Bool Source
gestureIsActive
gestureIsActive :: (MonadIO m, GestureK a) => a -> m Bool Source
gestureIsGroupedWith
gestureIsRecognized
gestureIsRecognized :: (MonadIO m, GestureK a) => a -> m Bool Source
gestureSetSequenceState
gestureSetSequenceState :: (MonadIO m, GestureK a) => a -> EventSequence -> EventSequenceState -> m Bool Source
gestureSetState
gestureSetState :: (MonadIO m, GestureK a) => a -> EventSequenceState -> m Bool Source
gestureSetWindow
gestureUngroup
gestureUngroup :: (MonadIO m, GestureK a) => a -> m () Source
Properties
NPoints
data GestureNPointsPropertyInfo Source
AttrInfo GestureNPointsPropertyInfo Source | |
type AttrLabel GestureNPointsPropertyInfo = "Gesture::n-points" Source | |
type AttrGetType GestureNPointsPropertyInfo = Word32 Source | |
type AttrBaseTypeConstraint GestureNPointsPropertyInfo = GestureK Source | |
type AttrSetTypeConstraint GestureNPointsPropertyInfo = * ~ Word32 Source | |
type AttrAllowedOps GestureNPointsPropertyInfo = (:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag)) Source |
getGestureNPoints :: (MonadIO m, GestureK o) => o -> m Word32 Source
Window
data GestureWindowPropertyInfo Source
AttrInfo GestureWindowPropertyInfo Source | |
type AttrLabel GestureWindowPropertyInfo = "Gesture::window" Source | |
type AttrGetType GestureWindowPropertyInfo = Window Source | |
type AttrBaseTypeConstraint GestureWindowPropertyInfo = GestureK Source | |
type AttrSetTypeConstraint GestureWindowPropertyInfo = WindowK Source | |
type AttrAllowedOps GestureWindowPropertyInfo = (:) AttrOpTag AttrSet ((:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag))) Source |
getGestureWindow :: (MonadIO m, GestureK o) => o -> m Window Source
setGestureWindow :: (MonadIO m, GestureK o, WindowK a) => o -> a -> m () Source
Signals
Begin
type GestureBeginCallback = EventSequence -> IO () Source
type GestureBeginCallbackC = Ptr () -> Ptr EventSequence -> Ptr () -> IO () Source
afterGestureBegin :: (GObject a, MonadIO m) => a -> GestureBeginCallback -> m SignalHandlerId Source
gestureBeginCallbackWrapper :: GestureBeginCallback -> Ptr () -> Ptr EventSequence -> Ptr () -> IO () Source
onGestureBegin :: (GObject a, MonadIO m) => a -> GestureBeginCallback -> m SignalHandlerId Source
Cancel
type GestureCancelCallback = EventSequence -> IO () Source
type GestureCancelCallbackC = Ptr () -> Ptr EventSequence -> Ptr () -> IO () Source
afterGestureCancel :: (GObject a, MonadIO m) => a -> GestureCancelCallback -> m SignalHandlerId Source
gestureCancelCallbackWrapper :: GestureCancelCallback -> Ptr () -> Ptr EventSequence -> Ptr () -> IO () Source
onGestureCancel :: (GObject a, MonadIO m) => a -> GestureCancelCallback -> m SignalHandlerId Source
End
type GestureEndCallback = EventSequence -> IO () Source
type GestureEndCallbackC = Ptr () -> Ptr EventSequence -> Ptr () -> IO () Source
afterGestureEnd :: (GObject a, MonadIO m) => a -> GestureEndCallback -> m SignalHandlerId Source
gestureEndCallbackWrapper :: GestureEndCallback -> Ptr () -> Ptr EventSequence -> Ptr () -> IO () Source
onGestureEnd :: (GObject a, MonadIO m) => a -> GestureEndCallback -> m SignalHandlerId Source
SequenceStateChanged
type GestureSequenceStateChangedCallback = EventSequence -> EventSequenceState -> IO () Source
type GestureSequenceStateChangedCallbackC = Ptr () -> Ptr EventSequence -> CUInt -> Ptr () -> IO () Source
afterGestureSequenceStateChanged :: (GObject a, MonadIO m) => a -> GestureSequenceStateChangedCallback -> m SignalHandlerId Source
gestureSequenceStateChangedCallbackWrapper :: GestureSequenceStateChangedCallback -> Ptr () -> Ptr EventSequence -> CUInt -> Ptr () -> IO () Source
mkGestureSequenceStateChangedCallback :: GestureSequenceStateChangedCallbackC -> IO (FunPtr GestureSequenceStateChangedCallbackC) Source
onGestureSequenceStateChanged :: (GObject a, MonadIO m) => a -> GestureSequenceStateChangedCallback -> m SignalHandlerId Source
Update
type GestureUpdateCallback = EventSequence -> IO () Source
type GestureUpdateCallbackC = Ptr () -> Ptr EventSequence -> Ptr () -> IO () Source
afterGestureUpdate :: (GObject a, MonadIO m) => a -> GestureUpdateCallback -> m SignalHandlerId Source
gestureUpdateCallbackWrapper :: GestureUpdateCallback -> Ptr () -> Ptr EventSequence -> Ptr () -> IO () Source
onGestureUpdate :: (GObject a, MonadIO m) => a -> GestureUpdateCallback -> m SignalHandlerId Source