#define ENABLE_OVERLOADING (MIN_VERSION_haskell_gi_overloading(1,0,0) \
&& !defined(__HADDOCK_VERSION__))
module GI.Gtk.Objects.GestureStylus
(
#if ENABLE_OVERLOADING
GestureStylusGetAxesMethodInfo ,
#endif
GestureStylus(..) ,
IsGestureStylus ,
toGestureStylus ,
noGestureStylus ,
#if ENABLE_OVERLOADING
GestureStylusGetAxisMethodInfo ,
#endif
gestureStylusGetAxis ,
#if ENABLE_OVERLOADING
GestureStylusGetDeviceToolMethodInfo ,
#endif
gestureStylusGetDeviceTool ,
gestureStylusNew ,
C_GestureStylusDownCallback ,
GestureStylusDownCallback ,
#if ENABLE_OVERLOADING
GestureStylusDownSignalInfo ,
#endif
afterGestureStylusDown ,
genClosure_GestureStylusDown ,
mk_GestureStylusDownCallback ,
noGestureStylusDownCallback ,
onGestureStylusDown ,
wrap_GestureStylusDownCallback ,
C_GestureStylusMotionCallback ,
GestureStylusMotionCallback ,
#if ENABLE_OVERLOADING
GestureStylusMotionSignalInfo ,
#endif
afterGestureStylusMotion ,
genClosure_GestureStylusMotion ,
mk_GestureStylusMotionCallback ,
noGestureStylusMotionCallback ,
onGestureStylusMotion ,
wrap_GestureStylusMotionCallback ,
C_GestureStylusProximityCallback ,
GestureStylusProximityCallback ,
#if ENABLE_OVERLOADING
GestureStylusProximitySignalInfo ,
#endif
afterGestureStylusProximity ,
genClosure_GestureStylusProximity ,
mk_GestureStylusProximityCallback ,
noGestureStylusProximityCallback ,
onGestureStylusProximity ,
wrap_GestureStylusProximityCallback ,
C_GestureStylusUpCallback ,
GestureStylusUpCallback ,
#if ENABLE_OVERLOADING
GestureStylusUpSignalInfo ,
#endif
afterGestureStylusUp ,
genClosure_GestureStylusUp ,
mk_GestureStylusUpCallback ,
noGestureStylusUpCallback ,
onGestureStylusUp ,
wrap_GestureStylusUpCallback ,
) where
import Data.GI.Base.ShortPrelude
import qualified Data.GI.Base.ShortPrelude as SP
import qualified Data.GI.Base.Overloading as O
import qualified Prelude as P
import qualified Data.GI.Base.Attributes as GI.Attributes
import qualified Data.GI.Base.ManagedPtr as B.ManagedPtr
import qualified Data.GI.Base.GError as B.GError
import qualified Data.GI.Base.GVariant as B.GVariant
import qualified Data.GI.Base.GValue as B.GValue
import qualified Data.GI.Base.GParamSpec as B.GParamSpec
import qualified Data.GI.Base.CallStack as B.CallStack
import qualified Data.Text as T
import qualified Data.ByteString.Char8 as B
import qualified Data.Map as Map
import qualified Foreign.Ptr as FP
import qualified GI.GObject.Objects.Object as GObject.Object
import qualified GI.Gdk.Enums as Gdk.Enums
import qualified GI.Gdk.Objects.DeviceTool as Gdk.DeviceTool
import {-# SOURCE #-} qualified GI.Gtk.Objects.EventController as Gtk.EventController
import {-# SOURCE #-} qualified GI.Gtk.Objects.Gesture as Gtk.Gesture
import {-# SOURCE #-} qualified GI.Gtk.Objects.GestureSingle as Gtk.GestureSingle
import {-# SOURCE #-} qualified GI.Gtk.Objects.Widget as Gtk.Widget
newtype GestureStylus = GestureStylus (ManagedPtr GestureStylus)
foreign import ccall "gtk_gesture_stylus_get_type"
c_gtk_gesture_stylus_get_type :: IO GType
instance GObject GestureStylus where
gobjectType _ = c_gtk_gesture_stylus_get_type
class GObject o => IsGestureStylus o
#if MIN_VERSION_base(4,9,0)
instance {-# OVERLAPPABLE #-} (GObject a, O.UnknownAncestorError GestureStylus a) =>
IsGestureStylus a
#endif
instance IsGestureStylus GestureStylus
instance Gtk.GestureSingle.IsGestureSingle GestureStylus
instance Gtk.Gesture.IsGesture GestureStylus
instance Gtk.EventController.IsEventController GestureStylus
instance GObject.Object.IsObject GestureStylus
toGestureStylus :: (MonadIO m, IsGestureStylus o) => o -> m GestureStylus
toGestureStylus = liftIO . unsafeCastTo GestureStylus
noGestureStylus :: Maybe GestureStylus
noGestureStylus = Nothing
#if ENABLE_OVERLOADING
type family ResolveGestureStylusMethod (t :: Symbol) (o :: *) :: * where
ResolveGestureStylusMethod "bindProperty" o = GObject.Object.ObjectBindPropertyMethodInfo
ResolveGestureStylusMethod "bindPropertyFull" o = GObject.Object.ObjectBindPropertyFullMethodInfo
ResolveGestureStylusMethod "forceFloating" o = GObject.Object.ObjectForceFloatingMethodInfo
ResolveGestureStylusMethod "freezeNotify" o = GObject.Object.ObjectFreezeNotifyMethodInfo
ResolveGestureStylusMethod "getv" o = GObject.Object.ObjectGetvMethodInfo
ResolveGestureStylusMethod "group" o = Gtk.Gesture.GestureGroupMethodInfo
ResolveGestureStylusMethod "handleEvent" o = Gtk.EventController.EventControllerHandleEventMethodInfo
ResolveGestureStylusMethod "handlesSequence" o = Gtk.Gesture.GestureHandlesSequenceMethodInfo
ResolveGestureStylusMethod "isActive" o = Gtk.Gesture.GestureIsActiveMethodInfo
ResolveGestureStylusMethod "isFloating" o = GObject.Object.ObjectIsFloatingMethodInfo
ResolveGestureStylusMethod "isGroupedWith" o = Gtk.Gesture.GestureIsGroupedWithMethodInfo
ResolveGestureStylusMethod "isRecognized" o = Gtk.Gesture.GestureIsRecognizedMethodInfo
ResolveGestureStylusMethod "notify" o = GObject.Object.ObjectNotifyMethodInfo
ResolveGestureStylusMethod "notifyByPspec" o = GObject.Object.ObjectNotifyByPspecMethodInfo
ResolveGestureStylusMethod "ref" o = GObject.Object.ObjectRefMethodInfo
ResolveGestureStylusMethod "refSink" o = GObject.Object.ObjectRefSinkMethodInfo
ResolveGestureStylusMethod "reset" o = Gtk.EventController.EventControllerResetMethodInfo
ResolveGestureStylusMethod "runDispose" o = GObject.Object.ObjectRunDisposeMethodInfo
ResolveGestureStylusMethod "stealData" o = GObject.Object.ObjectStealDataMethodInfo
ResolveGestureStylusMethod "stealQdata" o = GObject.Object.ObjectStealQdataMethodInfo
ResolveGestureStylusMethod "thawNotify" o = GObject.Object.ObjectThawNotifyMethodInfo
ResolveGestureStylusMethod "ungroup" o = Gtk.Gesture.GestureUngroupMethodInfo
ResolveGestureStylusMethod "unref" o = GObject.Object.ObjectUnrefMethodInfo
ResolveGestureStylusMethod "watchClosure" o = GObject.Object.ObjectWatchClosureMethodInfo
ResolveGestureStylusMethod "getAxes" o = GestureStylusGetAxesMethodInfo
ResolveGestureStylusMethod "getAxis" o = GestureStylusGetAxisMethodInfo
ResolveGestureStylusMethod "getBoundingBox" o = Gtk.Gesture.GestureGetBoundingBoxMethodInfo
ResolveGestureStylusMethod "getBoundingBoxCenter" o = Gtk.Gesture.GestureGetBoundingBoxCenterMethodInfo
ResolveGestureStylusMethod "getButton" o = Gtk.GestureSingle.GestureSingleGetButtonMethodInfo
ResolveGestureStylusMethod "getCurrentButton" o = Gtk.GestureSingle.GestureSingleGetCurrentButtonMethodInfo
ResolveGestureStylusMethod "getCurrentSequence" o = Gtk.GestureSingle.GestureSingleGetCurrentSequenceMethodInfo
ResolveGestureStylusMethod "getData" o = GObject.Object.ObjectGetDataMethodInfo
ResolveGestureStylusMethod "getDevice" o = Gtk.Gesture.GestureGetDeviceMethodInfo
ResolveGestureStylusMethod "getDeviceTool" o = GestureStylusGetDeviceToolMethodInfo
ResolveGestureStylusMethod "getExclusive" o = Gtk.GestureSingle.GestureSingleGetExclusiveMethodInfo
ResolveGestureStylusMethod "getGroup" o = Gtk.Gesture.GestureGetGroupMethodInfo
ResolveGestureStylusMethod "getLastEvent" o = Gtk.Gesture.GestureGetLastEventMethodInfo
ResolveGestureStylusMethod "getLastUpdatedSequence" o = Gtk.Gesture.GestureGetLastUpdatedSequenceMethodInfo
ResolveGestureStylusMethod "getPoint" o = Gtk.Gesture.GestureGetPointMethodInfo
ResolveGestureStylusMethod "getPropagationPhase" o = Gtk.EventController.EventControllerGetPropagationPhaseMethodInfo
ResolveGestureStylusMethod "getProperty" o = GObject.Object.ObjectGetPropertyMethodInfo
ResolveGestureStylusMethod "getQdata" o = GObject.Object.ObjectGetQdataMethodInfo
ResolveGestureStylusMethod "getSequenceState" o = Gtk.Gesture.GestureGetSequenceStateMethodInfo
ResolveGestureStylusMethod "getSequences" o = Gtk.Gesture.GestureGetSequencesMethodInfo
ResolveGestureStylusMethod "getTouchOnly" o = Gtk.GestureSingle.GestureSingleGetTouchOnlyMethodInfo
ResolveGestureStylusMethod "getWidget" o = Gtk.EventController.EventControllerGetWidgetMethodInfo
ResolveGestureStylusMethod "getWindow" o = Gtk.Gesture.GestureGetWindowMethodInfo
ResolveGestureStylusMethod "setButton" o = Gtk.GestureSingle.GestureSingleSetButtonMethodInfo
ResolveGestureStylusMethod "setData" o = GObject.Object.ObjectSetDataMethodInfo
ResolveGestureStylusMethod "setExclusive" o = Gtk.GestureSingle.GestureSingleSetExclusiveMethodInfo
ResolveGestureStylusMethod "setPropagationPhase" o = Gtk.EventController.EventControllerSetPropagationPhaseMethodInfo
ResolveGestureStylusMethod "setProperty" o = GObject.Object.ObjectSetPropertyMethodInfo
ResolveGestureStylusMethod "setSequenceState" o = Gtk.Gesture.GestureSetSequenceStateMethodInfo
ResolveGestureStylusMethod "setState" o = Gtk.Gesture.GestureSetStateMethodInfo
ResolveGestureStylusMethod "setTouchOnly" o = Gtk.GestureSingle.GestureSingleSetTouchOnlyMethodInfo
ResolveGestureStylusMethod "setWindow" o = Gtk.Gesture.GestureSetWindowMethodInfo
ResolveGestureStylusMethod l o = O.MethodResolutionFailed l o
instance (info ~ ResolveGestureStylusMethod t GestureStylus, O.MethodInfo info GestureStylus p) => O.IsLabelProxy t (GestureStylus -> p) where
fromLabelProxy _ = O.overloadedMethod (O.MethodProxy :: O.MethodProxy info)
#if MIN_VERSION_base(4,9,0)
instance (info ~ ResolveGestureStylusMethod t GestureStylus, O.MethodInfo info GestureStylus p) => O.IsLabel t (GestureStylus -> p) where
#if MIN_VERSION_base(4,10,0)
fromLabel = O.overloadedMethod (O.MethodProxy :: O.MethodProxy info)
#else
fromLabel _ = O.overloadedMethod (O.MethodProxy :: O.MethodProxy info)
#endif
#endif
#endif
type GestureStylusDownCallback =
Double
-> Double
-> IO ()
noGestureStylusDownCallback :: Maybe GestureStylusDownCallback
noGestureStylusDownCallback = Nothing
type C_GestureStylusDownCallback =
Ptr () ->
CDouble ->
CDouble ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_GestureStylusDownCallback :: C_GestureStylusDownCallback -> IO (FunPtr C_GestureStylusDownCallback)
genClosure_GestureStylusDown :: GestureStylusDownCallback -> IO Closure
genClosure_GestureStylusDown cb = do
let cb' = wrap_GestureStylusDownCallback cb
mk_GestureStylusDownCallback cb' >>= newCClosure
wrap_GestureStylusDownCallback ::
GestureStylusDownCallback ->
C_GestureStylusDownCallback
wrap_GestureStylusDownCallback _cb _ object p0 _ = do
let object' = realToFrac object
let p0' = realToFrac p0
_cb object' p0'
onGestureStylusDown :: (IsGestureStylus a, MonadIO m) => a -> GestureStylusDownCallback -> m SignalHandlerId
onGestureStylusDown obj cb = liftIO $ do
let cb' = wrap_GestureStylusDownCallback cb
cb'' <- mk_GestureStylusDownCallback cb'
connectSignalFunPtr obj "down" cb'' SignalConnectBefore
afterGestureStylusDown :: (IsGestureStylus a, MonadIO m) => a -> GestureStylusDownCallback -> m SignalHandlerId
afterGestureStylusDown obj cb = liftIO $ do
let cb' = wrap_GestureStylusDownCallback cb
cb'' <- mk_GestureStylusDownCallback cb'
connectSignalFunPtr obj "down" cb'' SignalConnectAfter
type GestureStylusMotionCallback =
Double
-> Double
-> IO ()
noGestureStylusMotionCallback :: Maybe GestureStylusMotionCallback
noGestureStylusMotionCallback = Nothing
type C_GestureStylusMotionCallback =
Ptr () ->
CDouble ->
CDouble ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_GestureStylusMotionCallback :: C_GestureStylusMotionCallback -> IO (FunPtr C_GestureStylusMotionCallback)
genClosure_GestureStylusMotion :: GestureStylusMotionCallback -> IO Closure
genClosure_GestureStylusMotion cb = do
let cb' = wrap_GestureStylusMotionCallback cb
mk_GestureStylusMotionCallback cb' >>= newCClosure
wrap_GestureStylusMotionCallback ::
GestureStylusMotionCallback ->
C_GestureStylusMotionCallback
wrap_GestureStylusMotionCallback _cb _ object p0 _ = do
let object' = realToFrac object
let p0' = realToFrac p0
_cb object' p0'
onGestureStylusMotion :: (IsGestureStylus a, MonadIO m) => a -> GestureStylusMotionCallback -> m SignalHandlerId
onGestureStylusMotion obj cb = liftIO $ do
let cb' = wrap_GestureStylusMotionCallback cb
cb'' <- mk_GestureStylusMotionCallback cb'
connectSignalFunPtr obj "motion" cb'' SignalConnectBefore
afterGestureStylusMotion :: (IsGestureStylus a, MonadIO m) => a -> GestureStylusMotionCallback -> m SignalHandlerId
afterGestureStylusMotion obj cb = liftIO $ do
let cb' = wrap_GestureStylusMotionCallback cb
cb'' <- mk_GestureStylusMotionCallback cb'
connectSignalFunPtr obj "motion" cb'' SignalConnectAfter
type GestureStylusProximityCallback =
Double
-> Double
-> IO ()
noGestureStylusProximityCallback :: Maybe GestureStylusProximityCallback
noGestureStylusProximityCallback = Nothing
type C_GestureStylusProximityCallback =
Ptr () ->
CDouble ->
CDouble ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_GestureStylusProximityCallback :: C_GestureStylusProximityCallback -> IO (FunPtr C_GestureStylusProximityCallback)
genClosure_GestureStylusProximity :: GestureStylusProximityCallback -> IO Closure
genClosure_GestureStylusProximity cb = do
let cb' = wrap_GestureStylusProximityCallback cb
mk_GestureStylusProximityCallback cb' >>= newCClosure
wrap_GestureStylusProximityCallback ::
GestureStylusProximityCallback ->
C_GestureStylusProximityCallback
wrap_GestureStylusProximityCallback _cb _ object p0 _ = do
let object' = realToFrac object
let p0' = realToFrac p0
_cb object' p0'
onGestureStylusProximity :: (IsGestureStylus a, MonadIO m) => a -> GestureStylusProximityCallback -> m SignalHandlerId
onGestureStylusProximity obj cb = liftIO $ do
let cb' = wrap_GestureStylusProximityCallback cb
cb'' <- mk_GestureStylusProximityCallback cb'
connectSignalFunPtr obj "proximity" cb'' SignalConnectBefore
afterGestureStylusProximity :: (IsGestureStylus a, MonadIO m) => a -> GestureStylusProximityCallback -> m SignalHandlerId
afterGestureStylusProximity obj cb = liftIO $ do
let cb' = wrap_GestureStylusProximityCallback cb
cb'' <- mk_GestureStylusProximityCallback cb'
connectSignalFunPtr obj "proximity" cb'' SignalConnectAfter
type GestureStylusUpCallback =
Double
-> Double
-> IO ()
noGestureStylusUpCallback :: Maybe GestureStylusUpCallback
noGestureStylusUpCallback = Nothing
type C_GestureStylusUpCallback =
Ptr () ->
CDouble ->
CDouble ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_GestureStylusUpCallback :: C_GestureStylusUpCallback -> IO (FunPtr C_GestureStylusUpCallback)
genClosure_GestureStylusUp :: GestureStylusUpCallback -> IO Closure
genClosure_GestureStylusUp cb = do
let cb' = wrap_GestureStylusUpCallback cb
mk_GestureStylusUpCallback cb' >>= newCClosure
wrap_GestureStylusUpCallback ::
GestureStylusUpCallback ->
C_GestureStylusUpCallback
wrap_GestureStylusUpCallback _cb _ object p0 _ = do
let object' = realToFrac object
let p0' = realToFrac p0
_cb object' p0'
onGestureStylusUp :: (IsGestureStylus a, MonadIO m) => a -> GestureStylusUpCallback -> m SignalHandlerId
onGestureStylusUp obj cb = liftIO $ do
let cb' = wrap_GestureStylusUpCallback cb
cb'' <- mk_GestureStylusUpCallback cb'
connectSignalFunPtr obj "up" cb'' SignalConnectBefore
afterGestureStylusUp :: (IsGestureStylus a, MonadIO m) => a -> GestureStylusUpCallback -> m SignalHandlerId
afterGestureStylusUp obj cb = liftIO $ do
let cb' = wrap_GestureStylusUpCallback cb
cb'' <- mk_GestureStylusUpCallback cb'
connectSignalFunPtr obj "up" cb'' SignalConnectAfter
#if ENABLE_OVERLOADING
instance O.HasAttributeList GestureStylus
type instance O.AttributeList GestureStylus = GestureStylusAttributeList
type GestureStylusAttributeList = ('[ '("button", Gtk.GestureSingle.GestureSingleButtonPropertyInfo), '("exclusive", Gtk.GestureSingle.GestureSingleExclusivePropertyInfo), '("nPoints", Gtk.Gesture.GestureNPointsPropertyInfo), '("propagationPhase", Gtk.EventController.EventControllerPropagationPhasePropertyInfo), '("touchOnly", Gtk.GestureSingle.GestureSingleTouchOnlyPropertyInfo), '("widget", Gtk.EventController.EventControllerWidgetPropertyInfo), '("window", Gtk.Gesture.GestureWindowPropertyInfo)] :: [(Symbol, *)])
#endif
#if ENABLE_OVERLOADING
#endif
#if ENABLE_OVERLOADING
data GestureStylusDownSignalInfo
instance SignalInfo GestureStylusDownSignalInfo where
type HaskellCallbackType GestureStylusDownSignalInfo = GestureStylusDownCallback
connectSignal _ obj cb connectMode = do
let cb' = wrap_GestureStylusDownCallback cb
cb'' <- mk_GestureStylusDownCallback cb'
connectSignalFunPtr obj "down" cb'' connectMode
data GestureStylusMotionSignalInfo
instance SignalInfo GestureStylusMotionSignalInfo where
type HaskellCallbackType GestureStylusMotionSignalInfo = GestureStylusMotionCallback
connectSignal _ obj cb connectMode = do
let cb' = wrap_GestureStylusMotionCallback cb
cb'' <- mk_GestureStylusMotionCallback cb'
connectSignalFunPtr obj "motion" cb'' connectMode
data GestureStylusProximitySignalInfo
instance SignalInfo GestureStylusProximitySignalInfo where
type HaskellCallbackType GestureStylusProximitySignalInfo = GestureStylusProximityCallback
connectSignal _ obj cb connectMode = do
let cb' = wrap_GestureStylusProximityCallback cb
cb'' <- mk_GestureStylusProximityCallback cb'
connectSignalFunPtr obj "proximity" cb'' connectMode
data GestureStylusUpSignalInfo
instance SignalInfo GestureStylusUpSignalInfo where
type HaskellCallbackType GestureStylusUpSignalInfo = GestureStylusUpCallback
connectSignal _ obj cb connectMode = do
let cb' = wrap_GestureStylusUpCallback cb
cb'' <- mk_GestureStylusUpCallback cb'
connectSignalFunPtr obj "up" cb'' connectMode
type instance O.SignalList GestureStylus = GestureStylusSignalList
type GestureStylusSignalList = ('[ '("begin", Gtk.Gesture.GestureBeginSignalInfo), '("cancel", Gtk.Gesture.GestureCancelSignalInfo), '("down", GestureStylusDownSignalInfo), '("end", Gtk.Gesture.GestureEndSignalInfo), '("motion", GestureStylusMotionSignalInfo), '("notify", GObject.Object.ObjectNotifySignalInfo), '("proximity", GestureStylusProximitySignalInfo), '("sequenceStateChanged", Gtk.Gesture.GestureSequenceStateChangedSignalInfo), '("up", GestureStylusUpSignalInfo), '("update", Gtk.Gesture.GestureUpdateSignalInfo)] :: [(Symbol, *)])
#endif
foreign import ccall "gtk_gesture_stylus_new" gtk_gesture_stylus_new ::
Ptr Gtk.Widget.Widget ->
IO (Ptr GestureStylus)
gestureStylusNew ::
(B.CallStack.HasCallStack, MonadIO m, Gtk.Widget.IsWidget a) =>
a
-> m GestureStylus
gestureStylusNew widget = liftIO $ do
widget' <- unsafeManagedPtrCastPtr widget
result <- gtk_gesture_stylus_new widget'
checkUnexpectedReturnNULL "gestureStylusNew" result
result' <- (wrapObject GestureStylus) result
touchManagedPtr widget
return result'
#if ENABLE_OVERLOADING
#endif
#if ENABLE_OVERLOADING
data GestureStylusGetAxesMethodInfo
instance (p ~ (), o ~ O.MethodResolutionFailed "getAxes" GestureStylus) => O.MethodInfo GestureStylusGetAxesMethodInfo o p where
overloadedMethod _ = undefined
#endif
foreign import ccall "gtk_gesture_stylus_get_axis" gtk_gesture_stylus_get_axis ::
Ptr GestureStylus ->
CUInt ->
Ptr CDouble ->
IO CInt
gestureStylusGetAxis ::
(B.CallStack.HasCallStack, MonadIO m, IsGestureStylus a) =>
a
-> Gdk.Enums.AxisUse
-> m ((Bool, Double))
gestureStylusGetAxis gesture axis = liftIO $ do
gesture' <- unsafeManagedPtrCastPtr gesture
let axis' = (fromIntegral . fromEnum) axis
value <- allocMem :: IO (Ptr CDouble)
result <- gtk_gesture_stylus_get_axis gesture' axis' value
let result' = (/= 0) result
value' <- peek value
let value'' = realToFrac value'
touchManagedPtr gesture
freeMem value
return (result', value'')
#if ENABLE_OVERLOADING
data GestureStylusGetAxisMethodInfo
instance (signature ~ (Gdk.Enums.AxisUse -> m ((Bool, Double))), MonadIO m, IsGestureStylus a) => O.MethodInfo GestureStylusGetAxisMethodInfo a signature where
overloadedMethod _ = gestureStylusGetAxis
#endif
foreign import ccall "gtk_gesture_stylus_get_device_tool" gtk_gesture_stylus_get_device_tool ::
Ptr GestureStylus ->
IO (Ptr Gdk.DeviceTool.DeviceTool)
gestureStylusGetDeviceTool ::
(B.CallStack.HasCallStack, MonadIO m, IsGestureStylus a) =>
a
-> m (Maybe Gdk.DeviceTool.DeviceTool)
gestureStylusGetDeviceTool gesture = liftIO $ do
gesture' <- unsafeManagedPtrCastPtr gesture
result <- gtk_gesture_stylus_get_device_tool gesture'
maybeResult <- convertIfNonNull result $ \result' -> do
result'' <- (newObject Gdk.DeviceTool.DeviceTool) result'
return result''
touchManagedPtr gesture
return maybeResult
#if ENABLE_OVERLOADING
data GestureStylusGetDeviceToolMethodInfo
instance (signature ~ (m (Maybe Gdk.DeviceTool.DeviceTool)), MonadIO m, IsGestureStylus a) => O.MethodInfo GestureStylusGetDeviceToolMethodInfo a signature where
overloadedMethod _ = gestureStylusGetDeviceTool
#endif