module GI.Gdk.Objects.Device
(
Device(..) ,
IsDevice ,
toDevice ,
noDevice ,
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
DeviceGetAssociatedDeviceMethodInfo ,
#endif
deviceGetAssociatedDevice ,
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
DeviceGetAxesMethodInfo ,
#endif
deviceGetAxes ,
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
DeviceGetAxisUseMethodInfo ,
#endif
deviceGetAxisUse ,
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
DeviceGetDeviceTypeMethodInfo ,
#endif
deviceGetDeviceType ,
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
DeviceGetDisplayMethodInfo ,
#endif
deviceGetDisplay ,
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
DeviceGetHasCursorMethodInfo ,
#endif
deviceGetHasCursor ,
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
DeviceGetKeyMethodInfo ,
#endif
deviceGetKey ,
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
DeviceGetLastEventWindowMethodInfo ,
#endif
deviceGetLastEventWindow ,
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
DeviceGetModeMethodInfo ,
#endif
deviceGetMode ,
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
DeviceGetNAxesMethodInfo ,
#endif
deviceGetNAxes ,
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
DeviceGetNKeysMethodInfo ,
#endif
deviceGetNKeys ,
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
DeviceGetNameMethodInfo ,
#endif
deviceGetName ,
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
DeviceGetPositionMethodInfo ,
#endif
deviceGetPosition ,
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
DeviceGetPositionDoubleMethodInfo ,
#endif
deviceGetPositionDouble ,
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
DeviceGetProductIdMethodInfo ,
#endif
deviceGetProductId ,
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
DeviceGetSeatMethodInfo ,
#endif
deviceGetSeat ,
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
DeviceGetSourceMethodInfo ,
#endif
deviceGetSource ,
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
DeviceGetVendorIdMethodInfo ,
#endif
deviceGetVendorId ,
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
DeviceGetWindowAtPositionMethodInfo ,
#endif
deviceGetWindowAtPosition ,
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
DeviceGetWindowAtPositionDoubleMethodInfo,
#endif
deviceGetWindowAtPositionDouble ,
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
DeviceGrabMethodInfo ,
#endif
deviceGrab ,
deviceGrabInfoLibgtkOnly ,
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
DeviceListAxesMethodInfo ,
#endif
deviceListAxes ,
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
DeviceListSlaveDevicesMethodInfo ,
#endif
deviceListSlaveDevices ,
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
DeviceSetAxisUseMethodInfo ,
#endif
deviceSetAxisUse ,
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
DeviceSetKeyMethodInfo ,
#endif
deviceSetKey ,
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
DeviceSetModeMethodInfo ,
#endif
deviceSetMode ,
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
DeviceUngrabMethodInfo ,
#endif
deviceUngrab ,
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
DeviceWarpMethodInfo ,
#endif
deviceWarp ,
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
DeviceAssociatedDevicePropertyInfo ,
#endif
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
deviceAssociatedDevice ,
#endif
getDeviceAssociatedDevice ,
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
DeviceAxesPropertyInfo ,
#endif
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
deviceAxes ,
#endif
getDeviceAxes ,
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
DeviceDeviceManagerPropertyInfo ,
#endif
constructDeviceDeviceManager ,
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
deviceDeviceManager ,
#endif
getDeviceDeviceManager ,
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
DeviceDisplayPropertyInfo ,
#endif
constructDeviceDisplay ,
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
deviceDisplay ,
#endif
getDeviceDisplay ,
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
DeviceHasCursorPropertyInfo ,
#endif
constructDeviceHasCursor ,
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
deviceHasCursor ,
#endif
getDeviceHasCursor ,
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
DeviceInputModePropertyInfo ,
#endif
constructDeviceInputMode ,
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
deviceInputMode ,
#endif
getDeviceInputMode ,
setDeviceInputMode ,
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
DeviceInputSourcePropertyInfo ,
#endif
constructDeviceInputSource ,
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
deviceInputSource ,
#endif
getDeviceInputSource ,
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
DeviceNAxesPropertyInfo ,
#endif
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
deviceNAxes ,
#endif
getDeviceNAxes ,
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
DeviceNamePropertyInfo ,
#endif
constructDeviceName ,
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
deviceName ,
#endif
getDeviceName ,
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
DeviceNumTouchesPropertyInfo ,
#endif
constructDeviceNumTouches ,
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
deviceNumTouches ,
#endif
getDeviceNumTouches ,
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
DeviceProductIdPropertyInfo ,
#endif
constructDeviceProductId ,
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
deviceProductId ,
#endif
getDeviceProductId ,
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
DeviceSeatPropertyInfo ,
#endif
clearDeviceSeat ,
constructDeviceSeat ,
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
deviceSeat ,
#endif
getDeviceSeat ,
setDeviceSeat ,
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
DeviceToolPropertyInfo ,
#endif
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
deviceTool ,
#endif
getDeviceTool ,
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
DeviceTypePropertyInfo ,
#endif
constructDeviceType ,
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
deviceType ,
#endif
getDeviceType ,
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
DeviceVendorIdPropertyInfo ,
#endif
constructDeviceVendorId ,
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
deviceVendorId ,
#endif
getDeviceVendorId ,
C_DeviceChangedCallback ,
DeviceChangedCallback ,
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
DeviceChangedSignalInfo ,
#endif
afterDeviceChanged ,
genClosure_DeviceChanged ,
mk_DeviceChangedCallback ,
noDeviceChangedCallback ,
onDeviceChanged ,
wrap_DeviceChangedCallback ,
C_DeviceToolChangedCallback ,
DeviceToolChangedCallback ,
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
DeviceToolChangedSignalInfo ,
#endif
afterDeviceToolChanged ,
genClosure_DeviceToolChanged ,
mk_DeviceToolChangedCallback ,
noDeviceToolChangedCallback ,
onDeviceToolChanged ,
wrap_DeviceToolChangedCallback ,
) 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.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.Flags as Gdk.Flags
import qualified GI.Gdk.Objects.Cursor as Gdk.Cursor
import qualified GI.Gdk.Objects.DeviceManager as Gdk.DeviceManager
import qualified GI.Gdk.Objects.DeviceTool as Gdk.DeviceTool
import qualified GI.Gdk.Objects.Display as Gdk.Display
import qualified GI.Gdk.Objects.Screen as Gdk.Screen
import qualified GI.Gdk.Objects.Seat as Gdk.Seat
import qualified GI.Gdk.Objects.Window as Gdk.Window
import qualified GI.Gdk.Structs.Atom as Gdk.Atom
newtype Device = Device (ManagedPtr Device)
foreign import ccall "gdk_device_get_type"
c_gdk_device_get_type :: IO GType
instance GObject Device where
gobjectType _ = c_gdk_device_get_type
class GObject o => IsDevice o
#if MIN_VERSION_base(4,9,0)
instance (GObject a, O.UnknownAncestorError Device a) =>
IsDevice a
#endif
instance IsDevice Device
instance GObject.Object.IsObject Device
toDevice :: (MonadIO m, IsDevice o) => o -> m Device
toDevice = liftIO . unsafeCastTo Device
noDevice :: Maybe Device
noDevice = Nothing
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
type family ResolveDeviceMethod (t :: Symbol) (o :: *) :: * where
ResolveDeviceMethod "bindProperty" o = GObject.Object.ObjectBindPropertyMethodInfo
ResolveDeviceMethod "bindPropertyFull" o = GObject.Object.ObjectBindPropertyFullMethodInfo
ResolveDeviceMethod "forceFloating" o = GObject.Object.ObjectForceFloatingMethodInfo
ResolveDeviceMethod "freezeNotify" o = GObject.Object.ObjectFreezeNotifyMethodInfo
ResolveDeviceMethod "grab" o = DeviceGrabMethodInfo
ResolveDeviceMethod "isFloating" o = GObject.Object.ObjectIsFloatingMethodInfo
ResolveDeviceMethod "listAxes" o = DeviceListAxesMethodInfo
ResolveDeviceMethod "listSlaveDevices" o = DeviceListSlaveDevicesMethodInfo
ResolveDeviceMethod "notify" o = GObject.Object.ObjectNotifyMethodInfo
ResolveDeviceMethod "notifyByPspec" o = GObject.Object.ObjectNotifyByPspecMethodInfo
ResolveDeviceMethod "ref" o = GObject.Object.ObjectRefMethodInfo
ResolveDeviceMethod "refSink" o = GObject.Object.ObjectRefSinkMethodInfo
ResolveDeviceMethod "replaceData" o = GObject.Object.ObjectReplaceDataMethodInfo
ResolveDeviceMethod "replaceQdata" o = GObject.Object.ObjectReplaceQdataMethodInfo
ResolveDeviceMethod "runDispose" o = GObject.Object.ObjectRunDisposeMethodInfo
ResolveDeviceMethod "stealData" o = GObject.Object.ObjectStealDataMethodInfo
ResolveDeviceMethod "stealQdata" o = GObject.Object.ObjectStealQdataMethodInfo
ResolveDeviceMethod "thawNotify" o = GObject.Object.ObjectThawNotifyMethodInfo
ResolveDeviceMethod "ungrab" o = DeviceUngrabMethodInfo
ResolveDeviceMethod "unref" o = GObject.Object.ObjectUnrefMethodInfo
ResolveDeviceMethod "warp" o = DeviceWarpMethodInfo
ResolveDeviceMethod "watchClosure" o = GObject.Object.ObjectWatchClosureMethodInfo
ResolveDeviceMethod "getAssociatedDevice" o = DeviceGetAssociatedDeviceMethodInfo
ResolveDeviceMethod "getAxes" o = DeviceGetAxesMethodInfo
ResolveDeviceMethod "getAxisUse" o = DeviceGetAxisUseMethodInfo
ResolveDeviceMethod "getData" o = GObject.Object.ObjectGetDataMethodInfo
ResolveDeviceMethod "getDeviceType" o = DeviceGetDeviceTypeMethodInfo
ResolveDeviceMethod "getDisplay" o = DeviceGetDisplayMethodInfo
ResolveDeviceMethod "getHasCursor" o = DeviceGetHasCursorMethodInfo
ResolveDeviceMethod "getKey" o = DeviceGetKeyMethodInfo
ResolveDeviceMethod "getLastEventWindow" o = DeviceGetLastEventWindowMethodInfo
ResolveDeviceMethod "getMode" o = DeviceGetModeMethodInfo
ResolveDeviceMethod "getNAxes" o = DeviceGetNAxesMethodInfo
ResolveDeviceMethod "getNKeys" o = DeviceGetNKeysMethodInfo
ResolveDeviceMethod "getName" o = DeviceGetNameMethodInfo
ResolveDeviceMethod "getPosition" o = DeviceGetPositionMethodInfo
ResolveDeviceMethod "getPositionDouble" o = DeviceGetPositionDoubleMethodInfo
ResolveDeviceMethod "getProductId" o = DeviceGetProductIdMethodInfo
ResolveDeviceMethod "getProperty" o = GObject.Object.ObjectGetPropertyMethodInfo
ResolveDeviceMethod "getQdata" o = GObject.Object.ObjectGetQdataMethodInfo
ResolveDeviceMethod "getSeat" o = DeviceGetSeatMethodInfo
ResolveDeviceMethod "getSource" o = DeviceGetSourceMethodInfo
ResolveDeviceMethod "getVendorId" o = DeviceGetVendorIdMethodInfo
ResolveDeviceMethod "getWindowAtPosition" o = DeviceGetWindowAtPositionMethodInfo
ResolveDeviceMethod "getWindowAtPositionDouble" o = DeviceGetWindowAtPositionDoubleMethodInfo
ResolveDeviceMethod "setAxisUse" o = DeviceSetAxisUseMethodInfo
ResolveDeviceMethod "setData" o = GObject.Object.ObjectSetDataMethodInfo
ResolveDeviceMethod "setKey" o = DeviceSetKeyMethodInfo
ResolveDeviceMethod "setMode" o = DeviceSetModeMethodInfo
ResolveDeviceMethod "setProperty" o = GObject.Object.ObjectSetPropertyMethodInfo
ResolveDeviceMethod l o = O.MethodResolutionFailed l o
instance (info ~ ResolveDeviceMethod t Device, O.MethodInfo info Device p) => O.IsLabelProxy t (Device -> p) where
fromLabelProxy _ = O.overloadedMethod (O.MethodProxy :: O.MethodProxy info)
#if MIN_VERSION_base(4,9,0)
instance (info ~ ResolveDeviceMethod t Device, O.MethodInfo info Device p) => O.IsLabel t (Device -> 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 DeviceChangedCallback =
IO ()
noDeviceChangedCallback :: Maybe DeviceChangedCallback
noDeviceChangedCallback = Nothing
type C_DeviceChangedCallback =
Ptr () ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_DeviceChangedCallback :: C_DeviceChangedCallback -> IO (FunPtr C_DeviceChangedCallback)
genClosure_DeviceChanged :: DeviceChangedCallback -> IO Closure
genClosure_DeviceChanged cb = do
let cb' = wrap_DeviceChangedCallback cb
mk_DeviceChangedCallback cb' >>= newCClosure
wrap_DeviceChangedCallback ::
DeviceChangedCallback ->
Ptr () ->
Ptr () ->
IO ()
wrap_DeviceChangedCallback _cb _ _ = do
_cb
onDeviceChanged :: (IsDevice a, MonadIO m) => a -> DeviceChangedCallback -> m SignalHandlerId
onDeviceChanged obj cb = liftIO $ do
let cb' = wrap_DeviceChangedCallback cb
cb'' <- mk_DeviceChangedCallback cb'
connectSignalFunPtr obj "changed" cb'' SignalConnectBefore
afterDeviceChanged :: (IsDevice a, MonadIO m) => a -> DeviceChangedCallback -> m SignalHandlerId
afterDeviceChanged obj cb = liftIO $ do
let cb' = wrap_DeviceChangedCallback cb
cb'' <- mk_DeviceChangedCallback cb'
connectSignalFunPtr obj "changed" cb'' SignalConnectAfter
type DeviceToolChangedCallback =
Gdk.DeviceTool.DeviceTool ->
IO ()
noDeviceToolChangedCallback :: Maybe DeviceToolChangedCallback
noDeviceToolChangedCallback = Nothing
type C_DeviceToolChangedCallback =
Ptr () ->
Ptr Gdk.DeviceTool.DeviceTool ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_DeviceToolChangedCallback :: C_DeviceToolChangedCallback -> IO (FunPtr C_DeviceToolChangedCallback)
genClosure_DeviceToolChanged :: DeviceToolChangedCallback -> IO Closure
genClosure_DeviceToolChanged cb = do
let cb' = wrap_DeviceToolChangedCallback cb
mk_DeviceToolChangedCallback cb' >>= newCClosure
wrap_DeviceToolChangedCallback ::
DeviceToolChangedCallback ->
Ptr () ->
Ptr Gdk.DeviceTool.DeviceTool ->
Ptr () ->
IO ()
wrap_DeviceToolChangedCallback _cb _ tool _ = do
tool' <- (newObject Gdk.DeviceTool.DeviceTool) tool
_cb tool'
onDeviceToolChanged :: (IsDevice a, MonadIO m) => a -> DeviceToolChangedCallback -> m SignalHandlerId
onDeviceToolChanged obj cb = liftIO $ do
let cb' = wrap_DeviceToolChangedCallback cb
cb'' <- mk_DeviceToolChangedCallback cb'
connectSignalFunPtr obj "tool-changed" cb'' SignalConnectBefore
afterDeviceToolChanged :: (IsDevice a, MonadIO m) => a -> DeviceToolChangedCallback -> m SignalHandlerId
afterDeviceToolChanged obj cb = liftIO $ do
let cb' = wrap_DeviceToolChangedCallback cb
cb'' <- mk_DeviceToolChangedCallback cb'
connectSignalFunPtr obj "tool-changed" cb'' SignalConnectAfter
getDeviceAssociatedDevice :: (MonadIO m, IsDevice o) => o -> m (Maybe Device)
getDeviceAssociatedDevice obj = liftIO $ getObjectPropertyObject obj "associated-device" Device
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
data DeviceAssociatedDevicePropertyInfo
instance AttrInfo DeviceAssociatedDevicePropertyInfo where
type AttrAllowedOps DeviceAssociatedDevicePropertyInfo = '[ 'AttrGet, 'AttrClear]
type AttrSetTypeConstraint DeviceAssociatedDevicePropertyInfo = (~) ()
type AttrBaseTypeConstraint DeviceAssociatedDevicePropertyInfo = IsDevice
type AttrGetType DeviceAssociatedDevicePropertyInfo = (Maybe Device)
type AttrLabel DeviceAssociatedDevicePropertyInfo = "associated-device"
type AttrOrigin DeviceAssociatedDevicePropertyInfo = Device
attrGet _ = getDeviceAssociatedDevice
attrSet _ = undefined
attrConstruct _ = undefined
attrClear _ = undefined
#endif
getDeviceAxes :: (MonadIO m, IsDevice o) => o -> m [Gdk.Flags.AxisFlags]
getDeviceAxes obj = liftIO $ getObjectPropertyFlags obj "axes"
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
data DeviceAxesPropertyInfo
instance AttrInfo DeviceAxesPropertyInfo where
type AttrAllowedOps DeviceAxesPropertyInfo = '[ 'AttrGet]
type AttrSetTypeConstraint DeviceAxesPropertyInfo = (~) ()
type AttrBaseTypeConstraint DeviceAxesPropertyInfo = IsDevice
type AttrGetType DeviceAxesPropertyInfo = [Gdk.Flags.AxisFlags]
type AttrLabel DeviceAxesPropertyInfo = "axes"
type AttrOrigin DeviceAxesPropertyInfo = Device
attrGet _ = getDeviceAxes
attrSet _ = undefined
attrConstruct _ = undefined
attrClear _ = undefined
#endif
getDeviceDeviceManager :: (MonadIO m, IsDevice o) => o -> m (Maybe Gdk.DeviceManager.DeviceManager)
getDeviceDeviceManager obj = liftIO $ getObjectPropertyObject obj "device-manager" Gdk.DeviceManager.DeviceManager
constructDeviceDeviceManager :: (IsDevice o, Gdk.DeviceManager.IsDeviceManager a) => a -> IO (GValueConstruct o)
constructDeviceDeviceManager val = constructObjectPropertyObject "device-manager" (Just val)
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
data DeviceDeviceManagerPropertyInfo
instance AttrInfo DeviceDeviceManagerPropertyInfo where
type AttrAllowedOps DeviceDeviceManagerPropertyInfo = '[ 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrSetTypeConstraint DeviceDeviceManagerPropertyInfo = Gdk.DeviceManager.IsDeviceManager
type AttrBaseTypeConstraint DeviceDeviceManagerPropertyInfo = IsDevice
type AttrGetType DeviceDeviceManagerPropertyInfo = (Maybe Gdk.DeviceManager.DeviceManager)
type AttrLabel DeviceDeviceManagerPropertyInfo = "device-manager"
type AttrOrigin DeviceDeviceManagerPropertyInfo = Device
attrGet _ = getDeviceDeviceManager
attrSet _ = undefined
attrConstruct _ = constructDeviceDeviceManager
attrClear _ = undefined
#endif
getDeviceDisplay :: (MonadIO m, IsDevice o) => o -> m Gdk.Display.Display
getDeviceDisplay obj = liftIO $ checkUnexpectedNothing "getDeviceDisplay" $ getObjectPropertyObject obj "display" Gdk.Display.Display
constructDeviceDisplay :: (IsDevice o, Gdk.Display.IsDisplay a) => a -> IO (GValueConstruct o)
constructDeviceDisplay val = constructObjectPropertyObject "display" (Just val)
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
data DeviceDisplayPropertyInfo
instance AttrInfo DeviceDisplayPropertyInfo where
type AttrAllowedOps DeviceDisplayPropertyInfo = '[ 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrSetTypeConstraint DeviceDisplayPropertyInfo = Gdk.Display.IsDisplay
type AttrBaseTypeConstraint DeviceDisplayPropertyInfo = IsDevice
type AttrGetType DeviceDisplayPropertyInfo = Gdk.Display.Display
type AttrLabel DeviceDisplayPropertyInfo = "display"
type AttrOrigin DeviceDisplayPropertyInfo = Device
attrGet _ = getDeviceDisplay
attrSet _ = undefined
attrConstruct _ = constructDeviceDisplay
attrClear _ = undefined
#endif
getDeviceHasCursor :: (MonadIO m, IsDevice o) => o -> m Bool
getDeviceHasCursor obj = liftIO $ getObjectPropertyBool obj "has-cursor"
constructDeviceHasCursor :: (IsDevice o) => Bool -> IO (GValueConstruct o)
constructDeviceHasCursor val = constructObjectPropertyBool "has-cursor" val
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
data DeviceHasCursorPropertyInfo
instance AttrInfo DeviceHasCursorPropertyInfo where
type AttrAllowedOps DeviceHasCursorPropertyInfo = '[ 'AttrConstruct, 'AttrGet]
type AttrSetTypeConstraint DeviceHasCursorPropertyInfo = (~) Bool
type AttrBaseTypeConstraint DeviceHasCursorPropertyInfo = IsDevice
type AttrGetType DeviceHasCursorPropertyInfo = Bool
type AttrLabel DeviceHasCursorPropertyInfo = "has-cursor"
type AttrOrigin DeviceHasCursorPropertyInfo = Device
attrGet _ = getDeviceHasCursor
attrSet _ = undefined
attrConstruct _ = constructDeviceHasCursor
attrClear _ = undefined
#endif
getDeviceInputMode :: (MonadIO m, IsDevice o) => o -> m Gdk.Enums.InputMode
getDeviceInputMode obj = liftIO $ getObjectPropertyEnum obj "input-mode"
setDeviceInputMode :: (MonadIO m, IsDevice o) => o -> Gdk.Enums.InputMode -> m ()
setDeviceInputMode obj val = liftIO $ setObjectPropertyEnum obj "input-mode" val
constructDeviceInputMode :: (IsDevice o) => Gdk.Enums.InputMode -> IO (GValueConstruct o)
constructDeviceInputMode val = constructObjectPropertyEnum "input-mode" val
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
data DeviceInputModePropertyInfo
instance AttrInfo DeviceInputModePropertyInfo where
type AttrAllowedOps DeviceInputModePropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrSetTypeConstraint DeviceInputModePropertyInfo = (~) Gdk.Enums.InputMode
type AttrBaseTypeConstraint DeviceInputModePropertyInfo = IsDevice
type AttrGetType DeviceInputModePropertyInfo = Gdk.Enums.InputMode
type AttrLabel DeviceInputModePropertyInfo = "input-mode"
type AttrOrigin DeviceInputModePropertyInfo = Device
attrGet _ = getDeviceInputMode
attrSet _ = setDeviceInputMode
attrConstruct _ = constructDeviceInputMode
attrClear _ = undefined
#endif
getDeviceInputSource :: (MonadIO m, IsDevice o) => o -> m Gdk.Enums.InputSource
getDeviceInputSource obj = liftIO $ getObjectPropertyEnum obj "input-source"
constructDeviceInputSource :: (IsDevice o) => Gdk.Enums.InputSource -> IO (GValueConstruct o)
constructDeviceInputSource val = constructObjectPropertyEnum "input-source" val
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
data DeviceInputSourcePropertyInfo
instance AttrInfo DeviceInputSourcePropertyInfo where
type AttrAllowedOps DeviceInputSourcePropertyInfo = '[ 'AttrConstruct, 'AttrGet]
type AttrSetTypeConstraint DeviceInputSourcePropertyInfo = (~) Gdk.Enums.InputSource
type AttrBaseTypeConstraint DeviceInputSourcePropertyInfo = IsDevice
type AttrGetType DeviceInputSourcePropertyInfo = Gdk.Enums.InputSource
type AttrLabel DeviceInputSourcePropertyInfo = "input-source"
type AttrOrigin DeviceInputSourcePropertyInfo = Device
attrGet _ = getDeviceInputSource
attrSet _ = undefined
attrConstruct _ = constructDeviceInputSource
attrClear _ = undefined
#endif
getDeviceNAxes :: (MonadIO m, IsDevice o) => o -> m Word32
getDeviceNAxes obj = liftIO $ getObjectPropertyUInt32 obj "n-axes"
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
data DeviceNAxesPropertyInfo
instance AttrInfo DeviceNAxesPropertyInfo where
type AttrAllowedOps DeviceNAxesPropertyInfo = '[ 'AttrGet]
type AttrSetTypeConstraint DeviceNAxesPropertyInfo = (~) ()
type AttrBaseTypeConstraint DeviceNAxesPropertyInfo = IsDevice
type AttrGetType DeviceNAxesPropertyInfo = Word32
type AttrLabel DeviceNAxesPropertyInfo = "n-axes"
type AttrOrigin DeviceNAxesPropertyInfo = Device
attrGet _ = getDeviceNAxes
attrSet _ = undefined
attrConstruct _ = undefined
attrClear _ = undefined
#endif
getDeviceName :: (MonadIO m, IsDevice o) => o -> m T.Text
getDeviceName obj = liftIO $ checkUnexpectedNothing "getDeviceName" $ getObjectPropertyString obj "name"
constructDeviceName :: (IsDevice o) => T.Text -> IO (GValueConstruct o)
constructDeviceName val = constructObjectPropertyString "name" (Just val)
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
data DeviceNamePropertyInfo
instance AttrInfo DeviceNamePropertyInfo where
type AttrAllowedOps DeviceNamePropertyInfo = '[ 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrSetTypeConstraint DeviceNamePropertyInfo = (~) T.Text
type AttrBaseTypeConstraint DeviceNamePropertyInfo = IsDevice
type AttrGetType DeviceNamePropertyInfo = T.Text
type AttrLabel DeviceNamePropertyInfo = "name"
type AttrOrigin DeviceNamePropertyInfo = Device
attrGet _ = getDeviceName
attrSet _ = undefined
attrConstruct _ = constructDeviceName
attrClear _ = undefined
#endif
getDeviceNumTouches :: (MonadIO m, IsDevice o) => o -> m Word32
getDeviceNumTouches obj = liftIO $ getObjectPropertyUInt32 obj "num-touches"
constructDeviceNumTouches :: (IsDevice o) => Word32 -> IO (GValueConstruct o)
constructDeviceNumTouches val = constructObjectPropertyUInt32 "num-touches" val
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
data DeviceNumTouchesPropertyInfo
instance AttrInfo DeviceNumTouchesPropertyInfo where
type AttrAllowedOps DeviceNumTouchesPropertyInfo = '[ 'AttrConstruct, 'AttrGet]
type AttrSetTypeConstraint DeviceNumTouchesPropertyInfo = (~) Word32
type AttrBaseTypeConstraint DeviceNumTouchesPropertyInfo = IsDevice
type AttrGetType DeviceNumTouchesPropertyInfo = Word32
type AttrLabel DeviceNumTouchesPropertyInfo = "num-touches"
type AttrOrigin DeviceNumTouchesPropertyInfo = Device
attrGet _ = getDeviceNumTouches
attrSet _ = undefined
attrConstruct _ = constructDeviceNumTouches
attrClear _ = undefined
#endif
getDeviceProductId :: (MonadIO m, IsDevice o) => o -> m (Maybe T.Text)
getDeviceProductId obj = liftIO $ getObjectPropertyString obj "product-id"
constructDeviceProductId :: (IsDevice o) => T.Text -> IO (GValueConstruct o)
constructDeviceProductId val = constructObjectPropertyString "product-id" (Just val)
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
data DeviceProductIdPropertyInfo
instance AttrInfo DeviceProductIdPropertyInfo where
type AttrAllowedOps DeviceProductIdPropertyInfo = '[ 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrSetTypeConstraint DeviceProductIdPropertyInfo = (~) T.Text
type AttrBaseTypeConstraint DeviceProductIdPropertyInfo = IsDevice
type AttrGetType DeviceProductIdPropertyInfo = (Maybe T.Text)
type AttrLabel DeviceProductIdPropertyInfo = "product-id"
type AttrOrigin DeviceProductIdPropertyInfo = Device
attrGet _ = getDeviceProductId
attrSet _ = undefined
attrConstruct _ = constructDeviceProductId
attrClear _ = undefined
#endif
getDeviceSeat :: (MonadIO m, IsDevice o) => o -> m Gdk.Seat.Seat
getDeviceSeat obj = liftIO $ checkUnexpectedNothing "getDeviceSeat" $ getObjectPropertyObject obj "seat" Gdk.Seat.Seat
setDeviceSeat :: (MonadIO m, IsDevice o, Gdk.Seat.IsSeat a) => o -> a -> m ()
setDeviceSeat obj val = liftIO $ setObjectPropertyObject obj "seat" (Just val)
constructDeviceSeat :: (IsDevice o, Gdk.Seat.IsSeat a) => a -> IO (GValueConstruct o)
constructDeviceSeat val = constructObjectPropertyObject "seat" (Just val)
clearDeviceSeat :: (MonadIO m, IsDevice o) => o -> m ()
clearDeviceSeat obj = liftIO $ setObjectPropertyObject obj "seat" (Nothing :: Maybe Gdk.Seat.Seat)
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
data DeviceSeatPropertyInfo
instance AttrInfo DeviceSeatPropertyInfo where
type AttrAllowedOps DeviceSeatPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrSetTypeConstraint DeviceSeatPropertyInfo = Gdk.Seat.IsSeat
type AttrBaseTypeConstraint DeviceSeatPropertyInfo = IsDevice
type AttrGetType DeviceSeatPropertyInfo = Gdk.Seat.Seat
type AttrLabel DeviceSeatPropertyInfo = "seat"
type AttrOrigin DeviceSeatPropertyInfo = Device
attrGet _ = getDeviceSeat
attrSet _ = setDeviceSeat
attrConstruct _ = constructDeviceSeat
attrClear _ = clearDeviceSeat
#endif
getDeviceTool :: (MonadIO m, IsDevice o) => o -> m (Maybe Gdk.DeviceTool.DeviceTool)
getDeviceTool obj = liftIO $ getObjectPropertyObject obj "tool" Gdk.DeviceTool.DeviceTool
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
data DeviceToolPropertyInfo
instance AttrInfo DeviceToolPropertyInfo where
type AttrAllowedOps DeviceToolPropertyInfo = '[ 'AttrGet, 'AttrClear]
type AttrSetTypeConstraint DeviceToolPropertyInfo = (~) ()
type AttrBaseTypeConstraint DeviceToolPropertyInfo = IsDevice
type AttrGetType DeviceToolPropertyInfo = (Maybe Gdk.DeviceTool.DeviceTool)
type AttrLabel DeviceToolPropertyInfo = "tool"
type AttrOrigin DeviceToolPropertyInfo = Device
attrGet _ = getDeviceTool
attrSet _ = undefined
attrConstruct _ = undefined
attrClear _ = undefined
#endif
getDeviceType :: (MonadIO m, IsDevice o) => o -> m Gdk.Enums.DeviceType
getDeviceType obj = liftIO $ getObjectPropertyEnum obj "type"
constructDeviceType :: (IsDevice o) => Gdk.Enums.DeviceType -> IO (GValueConstruct o)
constructDeviceType val = constructObjectPropertyEnum "type" val
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
data DeviceTypePropertyInfo
instance AttrInfo DeviceTypePropertyInfo where
type AttrAllowedOps DeviceTypePropertyInfo = '[ 'AttrConstruct, 'AttrGet]
type AttrSetTypeConstraint DeviceTypePropertyInfo = (~) Gdk.Enums.DeviceType
type AttrBaseTypeConstraint DeviceTypePropertyInfo = IsDevice
type AttrGetType DeviceTypePropertyInfo = Gdk.Enums.DeviceType
type AttrLabel DeviceTypePropertyInfo = "type"
type AttrOrigin DeviceTypePropertyInfo = Device
attrGet _ = getDeviceType
attrSet _ = undefined
attrConstruct _ = constructDeviceType
attrClear _ = undefined
#endif
getDeviceVendorId :: (MonadIO m, IsDevice o) => o -> m (Maybe T.Text)
getDeviceVendorId obj = liftIO $ getObjectPropertyString obj "vendor-id"
constructDeviceVendorId :: (IsDevice o) => T.Text -> IO (GValueConstruct o)
constructDeviceVendorId val = constructObjectPropertyString "vendor-id" (Just val)
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
data DeviceVendorIdPropertyInfo
instance AttrInfo DeviceVendorIdPropertyInfo where
type AttrAllowedOps DeviceVendorIdPropertyInfo = '[ 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrSetTypeConstraint DeviceVendorIdPropertyInfo = (~) T.Text
type AttrBaseTypeConstraint DeviceVendorIdPropertyInfo = IsDevice
type AttrGetType DeviceVendorIdPropertyInfo = (Maybe T.Text)
type AttrLabel DeviceVendorIdPropertyInfo = "vendor-id"
type AttrOrigin DeviceVendorIdPropertyInfo = Device
attrGet _ = getDeviceVendorId
attrSet _ = undefined
attrConstruct _ = constructDeviceVendorId
attrClear _ = undefined
#endif
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
instance O.HasAttributeList Device
type instance O.AttributeList Device = DeviceAttributeList
type DeviceAttributeList = ('[ '("associatedDevice", DeviceAssociatedDevicePropertyInfo), '("axes", DeviceAxesPropertyInfo), '("deviceManager", DeviceDeviceManagerPropertyInfo), '("display", DeviceDisplayPropertyInfo), '("hasCursor", DeviceHasCursorPropertyInfo), '("inputMode", DeviceInputModePropertyInfo), '("inputSource", DeviceInputSourcePropertyInfo), '("nAxes", DeviceNAxesPropertyInfo), '("name", DeviceNamePropertyInfo), '("numTouches", DeviceNumTouchesPropertyInfo), '("productId", DeviceProductIdPropertyInfo), '("seat", DeviceSeatPropertyInfo), '("tool", DeviceToolPropertyInfo), '("type", DeviceTypePropertyInfo), '("vendorId", DeviceVendorIdPropertyInfo)] :: [(Symbol, *)])
#endif
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
deviceAssociatedDevice :: AttrLabelProxy "associatedDevice"
deviceAssociatedDevice = AttrLabelProxy
deviceAxes :: AttrLabelProxy "axes"
deviceAxes = AttrLabelProxy
deviceDeviceManager :: AttrLabelProxy "deviceManager"
deviceDeviceManager = AttrLabelProxy
deviceDisplay :: AttrLabelProxy "display"
deviceDisplay = AttrLabelProxy
deviceHasCursor :: AttrLabelProxy "hasCursor"
deviceHasCursor = AttrLabelProxy
deviceInputMode :: AttrLabelProxy "inputMode"
deviceInputMode = AttrLabelProxy
deviceInputSource :: AttrLabelProxy "inputSource"
deviceInputSource = AttrLabelProxy
deviceNAxes :: AttrLabelProxy "nAxes"
deviceNAxes = AttrLabelProxy
deviceName :: AttrLabelProxy "name"
deviceName = AttrLabelProxy
deviceNumTouches :: AttrLabelProxy "numTouches"
deviceNumTouches = AttrLabelProxy
deviceProductId :: AttrLabelProxy "productId"
deviceProductId = AttrLabelProxy
deviceSeat :: AttrLabelProxy "seat"
deviceSeat = AttrLabelProxy
deviceTool :: AttrLabelProxy "tool"
deviceTool = AttrLabelProxy
deviceType :: AttrLabelProxy "type"
deviceType = AttrLabelProxy
deviceVendorId :: AttrLabelProxy "vendorId"
deviceVendorId = AttrLabelProxy
#endif
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
data DeviceChangedSignalInfo
instance SignalInfo DeviceChangedSignalInfo where
type HaskellCallbackType DeviceChangedSignalInfo = DeviceChangedCallback
connectSignal _ obj cb connectMode = do
let cb' = wrap_DeviceChangedCallback cb
cb'' <- mk_DeviceChangedCallback cb'
connectSignalFunPtr obj "changed" cb'' connectMode
data DeviceToolChangedSignalInfo
instance SignalInfo DeviceToolChangedSignalInfo where
type HaskellCallbackType DeviceToolChangedSignalInfo = DeviceToolChangedCallback
connectSignal _ obj cb connectMode = do
let cb' = wrap_DeviceToolChangedCallback cb
cb'' <- mk_DeviceToolChangedCallback cb'
connectSignalFunPtr obj "tool-changed" cb'' connectMode
type instance O.SignalList Device = DeviceSignalList
type DeviceSignalList = ('[ '("changed", DeviceChangedSignalInfo), '("notify", GObject.Object.ObjectNotifySignalInfo), '("toolChanged", DeviceToolChangedSignalInfo)] :: [(Symbol, *)])
#endif
foreign import ccall "gdk_device_get_associated_device" gdk_device_get_associated_device ::
Ptr Device ->
IO (Ptr Device)
deviceGetAssociatedDevice ::
(B.CallStack.HasCallStack, MonadIO m, IsDevice a) =>
a
-> m (Maybe Device)
deviceGetAssociatedDevice device = liftIO $ do
device' <- unsafeManagedPtrCastPtr device
result <- gdk_device_get_associated_device device'
maybeResult <- convertIfNonNull result $ \result' -> do
result'' <- (newObject Device) result'
return result''
touchManagedPtr device
return maybeResult
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
data DeviceGetAssociatedDeviceMethodInfo
instance (signature ~ (m (Maybe Device)), MonadIO m, IsDevice a) => O.MethodInfo DeviceGetAssociatedDeviceMethodInfo a signature where
overloadedMethod _ = deviceGetAssociatedDevice
#endif
foreign import ccall "gdk_device_get_axes" gdk_device_get_axes ::
Ptr Device ->
IO CUInt
deviceGetAxes ::
(B.CallStack.HasCallStack, MonadIO m, IsDevice a) =>
a
-> m [Gdk.Flags.AxisFlags]
deviceGetAxes device = liftIO $ do
device' <- unsafeManagedPtrCastPtr device
result <- gdk_device_get_axes device'
let result' = wordToGFlags result
touchManagedPtr device
return result'
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
data DeviceGetAxesMethodInfo
instance (signature ~ (m [Gdk.Flags.AxisFlags]), MonadIO m, IsDevice a) => O.MethodInfo DeviceGetAxesMethodInfo a signature where
overloadedMethod _ = deviceGetAxes
#endif
foreign import ccall "gdk_device_get_axis_use" gdk_device_get_axis_use ::
Ptr Device ->
Word32 ->
IO CUInt
deviceGetAxisUse ::
(B.CallStack.HasCallStack, MonadIO m, IsDevice a) =>
a
-> Word32
-> m Gdk.Enums.AxisUse
deviceGetAxisUse device index_ = liftIO $ do
device' <- unsafeManagedPtrCastPtr device
result <- gdk_device_get_axis_use device' index_
let result' = (toEnum . fromIntegral) result
touchManagedPtr device
return result'
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
data DeviceGetAxisUseMethodInfo
instance (signature ~ (Word32 -> m Gdk.Enums.AxisUse), MonadIO m, IsDevice a) => O.MethodInfo DeviceGetAxisUseMethodInfo a signature where
overloadedMethod _ = deviceGetAxisUse
#endif
foreign import ccall "gdk_device_get_device_type" gdk_device_get_device_type ::
Ptr Device ->
IO CUInt
deviceGetDeviceType ::
(B.CallStack.HasCallStack, MonadIO m, IsDevice a) =>
a
-> m Gdk.Enums.DeviceType
deviceGetDeviceType device = liftIO $ do
device' <- unsafeManagedPtrCastPtr device
result <- gdk_device_get_device_type device'
let result' = (toEnum . fromIntegral) result
touchManagedPtr device
return result'
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
data DeviceGetDeviceTypeMethodInfo
instance (signature ~ (m Gdk.Enums.DeviceType), MonadIO m, IsDevice a) => O.MethodInfo DeviceGetDeviceTypeMethodInfo a signature where
overloadedMethod _ = deviceGetDeviceType
#endif
foreign import ccall "gdk_device_get_display" gdk_device_get_display ::
Ptr Device ->
IO (Ptr Gdk.Display.Display)
deviceGetDisplay ::
(B.CallStack.HasCallStack, MonadIO m, IsDevice a) =>
a
-> m Gdk.Display.Display
deviceGetDisplay device = liftIO $ do
device' <- unsafeManagedPtrCastPtr device
result <- gdk_device_get_display device'
checkUnexpectedReturnNULL "deviceGetDisplay" result
result' <- (newObject Gdk.Display.Display) result
touchManagedPtr device
return result'
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
data DeviceGetDisplayMethodInfo
instance (signature ~ (m Gdk.Display.Display), MonadIO m, IsDevice a) => O.MethodInfo DeviceGetDisplayMethodInfo a signature where
overloadedMethod _ = deviceGetDisplay
#endif
foreign import ccall "gdk_device_get_has_cursor" gdk_device_get_has_cursor ::
Ptr Device ->
IO CInt
deviceGetHasCursor ::
(B.CallStack.HasCallStack, MonadIO m, IsDevice a) =>
a
-> m Bool
deviceGetHasCursor device = liftIO $ do
device' <- unsafeManagedPtrCastPtr device
result <- gdk_device_get_has_cursor device'
let result' = (/= 0) result
touchManagedPtr device
return result'
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
data DeviceGetHasCursorMethodInfo
instance (signature ~ (m Bool), MonadIO m, IsDevice a) => O.MethodInfo DeviceGetHasCursorMethodInfo a signature where
overloadedMethod _ = deviceGetHasCursor
#endif
foreign import ccall "gdk_device_get_key" gdk_device_get_key ::
Ptr Device ->
Word32 ->
Ptr Word32 ->
Ptr CUInt ->
IO CInt
deviceGetKey ::
(B.CallStack.HasCallStack, MonadIO m, IsDevice a) =>
a
-> Word32
-> m ((Bool, Word32, [Gdk.Flags.ModifierType]))
deviceGetKey device index_ = liftIO $ do
device' <- unsafeManagedPtrCastPtr device
keyval <- allocMem :: IO (Ptr Word32)
modifiers <- allocMem :: IO (Ptr CUInt)
result <- gdk_device_get_key device' index_ keyval modifiers
let result' = (/= 0) result
keyval' <- peek keyval
modifiers' <- peek modifiers
let modifiers'' = wordToGFlags modifiers'
touchManagedPtr device
freeMem keyval
freeMem modifiers
return (result', keyval', modifiers'')
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
data DeviceGetKeyMethodInfo
instance (signature ~ (Word32 -> m ((Bool, Word32, [Gdk.Flags.ModifierType]))), MonadIO m, IsDevice a) => O.MethodInfo DeviceGetKeyMethodInfo a signature where
overloadedMethod _ = deviceGetKey
#endif
foreign import ccall "gdk_device_get_last_event_window" gdk_device_get_last_event_window ::
Ptr Device ->
IO (Ptr Gdk.Window.Window)
deviceGetLastEventWindow ::
(B.CallStack.HasCallStack, MonadIO m, IsDevice a) =>
a
-> m (Maybe Gdk.Window.Window)
deviceGetLastEventWindow device = liftIO $ do
device' <- unsafeManagedPtrCastPtr device
result <- gdk_device_get_last_event_window device'
maybeResult <- convertIfNonNull result $ \result' -> do
result'' <- (newObject Gdk.Window.Window) result'
return result''
touchManagedPtr device
return maybeResult
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
data DeviceGetLastEventWindowMethodInfo
instance (signature ~ (m (Maybe Gdk.Window.Window)), MonadIO m, IsDevice a) => O.MethodInfo DeviceGetLastEventWindowMethodInfo a signature where
overloadedMethod _ = deviceGetLastEventWindow
#endif
foreign import ccall "gdk_device_get_mode" gdk_device_get_mode ::
Ptr Device ->
IO CUInt
deviceGetMode ::
(B.CallStack.HasCallStack, MonadIO m, IsDevice a) =>
a
-> m Gdk.Enums.InputMode
deviceGetMode device = liftIO $ do
device' <- unsafeManagedPtrCastPtr device
result <- gdk_device_get_mode device'
let result' = (toEnum . fromIntegral) result
touchManagedPtr device
return result'
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
data DeviceGetModeMethodInfo
instance (signature ~ (m Gdk.Enums.InputMode), MonadIO m, IsDevice a) => O.MethodInfo DeviceGetModeMethodInfo a signature where
overloadedMethod _ = deviceGetMode
#endif
foreign import ccall "gdk_device_get_n_axes" gdk_device_get_n_axes ::
Ptr Device ->
IO Int32
deviceGetNAxes ::
(B.CallStack.HasCallStack, MonadIO m, IsDevice a) =>
a
-> m Int32
deviceGetNAxes device = liftIO $ do
device' <- unsafeManagedPtrCastPtr device
result <- gdk_device_get_n_axes device'
touchManagedPtr device
return result
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
data DeviceGetNAxesMethodInfo
instance (signature ~ (m Int32), MonadIO m, IsDevice a) => O.MethodInfo DeviceGetNAxesMethodInfo a signature where
overloadedMethod _ = deviceGetNAxes
#endif
foreign import ccall "gdk_device_get_n_keys" gdk_device_get_n_keys ::
Ptr Device ->
IO Int32
deviceGetNKeys ::
(B.CallStack.HasCallStack, MonadIO m, IsDevice a) =>
a
-> m Int32
deviceGetNKeys device = liftIO $ do
device' <- unsafeManagedPtrCastPtr device
result <- gdk_device_get_n_keys device'
touchManagedPtr device
return result
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
data DeviceGetNKeysMethodInfo
instance (signature ~ (m Int32), MonadIO m, IsDevice a) => O.MethodInfo DeviceGetNKeysMethodInfo a signature where
overloadedMethod _ = deviceGetNKeys
#endif
foreign import ccall "gdk_device_get_name" gdk_device_get_name ::
Ptr Device ->
IO CString
deviceGetName ::
(B.CallStack.HasCallStack, MonadIO m, IsDevice a) =>
a
-> m T.Text
deviceGetName device = liftIO $ do
device' <- unsafeManagedPtrCastPtr device
result <- gdk_device_get_name device'
checkUnexpectedReturnNULL "deviceGetName" result
result' <- cstringToText result
touchManagedPtr device
return result'
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
data DeviceGetNameMethodInfo
instance (signature ~ (m T.Text), MonadIO m, IsDevice a) => O.MethodInfo DeviceGetNameMethodInfo a signature where
overloadedMethod _ = deviceGetName
#endif
foreign import ccall "gdk_device_get_position" gdk_device_get_position ::
Ptr Device ->
Ptr (Ptr Gdk.Screen.Screen) ->
Ptr Int32 ->
Ptr Int32 ->
IO ()
deviceGetPosition ::
(B.CallStack.HasCallStack, MonadIO m, IsDevice a) =>
a
-> m ((Gdk.Screen.Screen, Int32, Int32))
deviceGetPosition device = liftIO $ do
device' <- unsafeManagedPtrCastPtr device
screen <- allocMem :: IO (Ptr (Ptr Gdk.Screen.Screen))
x <- allocMem :: IO (Ptr Int32)
y <- allocMem :: IO (Ptr Int32)
gdk_device_get_position device' screen x y
screen' <- peek screen
screen'' <- (newObject Gdk.Screen.Screen) screen'
x' <- peek x
y' <- peek y
touchManagedPtr device
freeMem screen
freeMem x
freeMem y
return (screen'', x', y')
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
data DeviceGetPositionMethodInfo
instance (signature ~ (m ((Gdk.Screen.Screen, Int32, Int32))), MonadIO m, IsDevice a) => O.MethodInfo DeviceGetPositionMethodInfo a signature where
overloadedMethod _ = deviceGetPosition
#endif
foreign import ccall "gdk_device_get_position_double" gdk_device_get_position_double ::
Ptr Device ->
Ptr (Ptr Gdk.Screen.Screen) ->
Ptr CDouble ->
Ptr CDouble ->
IO ()
deviceGetPositionDouble ::
(B.CallStack.HasCallStack, MonadIO m, IsDevice a) =>
a
-> m ((Gdk.Screen.Screen, Double, Double))
deviceGetPositionDouble device = liftIO $ do
device' <- unsafeManagedPtrCastPtr device
screen <- allocMem :: IO (Ptr (Ptr Gdk.Screen.Screen))
x <- allocMem :: IO (Ptr CDouble)
y <- allocMem :: IO (Ptr CDouble)
gdk_device_get_position_double device' screen x y
screen' <- peek screen
screen'' <- (newObject Gdk.Screen.Screen) screen'
x' <- peek x
let x'' = realToFrac x'
y' <- peek y
let y'' = realToFrac y'
touchManagedPtr device
freeMem screen
freeMem x
freeMem y
return (screen'', x'', y'')
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
data DeviceGetPositionDoubleMethodInfo
instance (signature ~ (m ((Gdk.Screen.Screen, Double, Double))), MonadIO m, IsDevice a) => O.MethodInfo DeviceGetPositionDoubleMethodInfo a signature where
overloadedMethod _ = deviceGetPositionDouble
#endif
foreign import ccall "gdk_device_get_product_id" gdk_device_get_product_id ::
Ptr Device ->
IO CString
deviceGetProductId ::
(B.CallStack.HasCallStack, MonadIO m, IsDevice a) =>
a
-> m (Maybe T.Text)
deviceGetProductId device = liftIO $ do
device' <- unsafeManagedPtrCastPtr device
result <- gdk_device_get_product_id device'
maybeResult <- convertIfNonNull result $ \result' -> do
result'' <- cstringToText result'
return result''
touchManagedPtr device
return maybeResult
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
data DeviceGetProductIdMethodInfo
instance (signature ~ (m (Maybe T.Text)), MonadIO m, IsDevice a) => O.MethodInfo DeviceGetProductIdMethodInfo a signature where
overloadedMethod _ = deviceGetProductId
#endif
foreign import ccall "gdk_device_get_seat" gdk_device_get_seat ::
Ptr Device ->
IO (Ptr Gdk.Seat.Seat)
deviceGetSeat ::
(B.CallStack.HasCallStack, MonadIO m, IsDevice a) =>
a
-> m Gdk.Seat.Seat
deviceGetSeat device = liftIO $ do
device' <- unsafeManagedPtrCastPtr device
result <- gdk_device_get_seat device'
checkUnexpectedReturnNULL "deviceGetSeat" result
result' <- (newObject Gdk.Seat.Seat) result
touchManagedPtr device
return result'
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
data DeviceGetSeatMethodInfo
instance (signature ~ (m Gdk.Seat.Seat), MonadIO m, IsDevice a) => O.MethodInfo DeviceGetSeatMethodInfo a signature where
overloadedMethod _ = deviceGetSeat
#endif
foreign import ccall "gdk_device_get_source" gdk_device_get_source ::
Ptr Device ->
IO CUInt
deviceGetSource ::
(B.CallStack.HasCallStack, MonadIO m, IsDevice a) =>
a
-> m Gdk.Enums.InputSource
deviceGetSource device = liftIO $ do
device' <- unsafeManagedPtrCastPtr device
result <- gdk_device_get_source device'
let result' = (toEnum . fromIntegral) result
touchManagedPtr device
return result'
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
data DeviceGetSourceMethodInfo
instance (signature ~ (m Gdk.Enums.InputSource), MonadIO m, IsDevice a) => O.MethodInfo DeviceGetSourceMethodInfo a signature where
overloadedMethod _ = deviceGetSource
#endif
foreign import ccall "gdk_device_get_vendor_id" gdk_device_get_vendor_id ::
Ptr Device ->
IO CString
deviceGetVendorId ::
(B.CallStack.HasCallStack, MonadIO m, IsDevice a) =>
a
-> m (Maybe T.Text)
deviceGetVendorId device = liftIO $ do
device' <- unsafeManagedPtrCastPtr device
result <- gdk_device_get_vendor_id device'
maybeResult <- convertIfNonNull result $ \result' -> do
result'' <- cstringToText result'
return result''
touchManagedPtr device
return maybeResult
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
data DeviceGetVendorIdMethodInfo
instance (signature ~ (m (Maybe T.Text)), MonadIO m, IsDevice a) => O.MethodInfo DeviceGetVendorIdMethodInfo a signature where
overloadedMethod _ = deviceGetVendorId
#endif
foreign import ccall "gdk_device_get_window_at_position" gdk_device_get_window_at_position ::
Ptr Device ->
Ptr Int32 ->
Ptr Int32 ->
IO (Ptr Gdk.Window.Window)
deviceGetWindowAtPosition ::
(B.CallStack.HasCallStack, MonadIO m, IsDevice a) =>
a
-> m ((Maybe Gdk.Window.Window, Int32, Int32))
deviceGetWindowAtPosition device = liftIO $ do
device' <- unsafeManagedPtrCastPtr device
winX <- allocMem :: IO (Ptr Int32)
winY <- allocMem :: IO (Ptr Int32)
result <- gdk_device_get_window_at_position device' winX winY
maybeResult <- convertIfNonNull result $ \result' -> do
result'' <- (newObject Gdk.Window.Window) result'
return result''
winX' <- peek winX
winY' <- peek winY
touchManagedPtr device
freeMem winX
freeMem winY
return (maybeResult, winX', winY')
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
data DeviceGetWindowAtPositionMethodInfo
instance (signature ~ (m ((Maybe Gdk.Window.Window, Int32, Int32))), MonadIO m, IsDevice a) => O.MethodInfo DeviceGetWindowAtPositionMethodInfo a signature where
overloadedMethod _ = deviceGetWindowAtPosition
#endif
foreign import ccall "gdk_device_get_window_at_position_double" gdk_device_get_window_at_position_double ::
Ptr Device ->
Ptr CDouble ->
Ptr CDouble ->
IO (Ptr Gdk.Window.Window)
deviceGetWindowAtPositionDouble ::
(B.CallStack.HasCallStack, MonadIO m, IsDevice a) =>
a
-> m ((Maybe Gdk.Window.Window, Double, Double))
deviceGetWindowAtPositionDouble device = liftIO $ do
device' <- unsafeManagedPtrCastPtr device
winX <- allocMem :: IO (Ptr CDouble)
winY <- allocMem :: IO (Ptr CDouble)
result <- gdk_device_get_window_at_position_double device' winX winY
maybeResult <- convertIfNonNull result $ \result' -> do
result'' <- (newObject Gdk.Window.Window) result'
return result''
winX' <- peek winX
let winX'' = realToFrac winX'
winY' <- peek winY
let winY'' = realToFrac winY'
touchManagedPtr device
freeMem winX
freeMem winY
return (maybeResult, winX'', winY'')
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
data DeviceGetWindowAtPositionDoubleMethodInfo
instance (signature ~ (m ((Maybe Gdk.Window.Window, Double, Double))), MonadIO m, IsDevice a) => O.MethodInfo DeviceGetWindowAtPositionDoubleMethodInfo a signature where
overloadedMethod _ = deviceGetWindowAtPositionDouble
#endif
foreign import ccall "gdk_device_grab" gdk_device_grab ::
Ptr Device ->
Ptr Gdk.Window.Window ->
CUInt ->
CInt ->
CUInt ->
Ptr Gdk.Cursor.Cursor ->
Word32 ->
IO CUInt
deviceGrab ::
(B.CallStack.HasCallStack, MonadIO m, IsDevice a, Gdk.Window.IsWindow b, Gdk.Cursor.IsCursor c) =>
a
-> b
-> Gdk.Enums.GrabOwnership
-> Bool
-> [Gdk.Flags.EventMask]
-> Maybe (c)
-> Word32
-> m Gdk.Enums.GrabStatus
deviceGrab device window grabOwnership ownerEvents eventMask cursor time_ = liftIO $ do
device' <- unsafeManagedPtrCastPtr device
window' <- unsafeManagedPtrCastPtr window
let grabOwnership' = (fromIntegral . fromEnum) grabOwnership
let ownerEvents' = (fromIntegral . fromEnum) ownerEvents
let eventMask' = gflagsToWord eventMask
maybeCursor <- case cursor of
Nothing -> return nullPtr
Just jCursor -> do
jCursor' <- unsafeManagedPtrCastPtr jCursor
return jCursor'
result <- gdk_device_grab device' window' grabOwnership' ownerEvents' eventMask' maybeCursor time_
let result' = (toEnum . fromIntegral) result
touchManagedPtr device
touchManagedPtr window
whenJust cursor touchManagedPtr
return result'
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
data DeviceGrabMethodInfo
instance (signature ~ (b -> Gdk.Enums.GrabOwnership -> Bool -> [Gdk.Flags.EventMask] -> Maybe (c) -> Word32 -> m Gdk.Enums.GrabStatus), MonadIO m, IsDevice a, Gdk.Window.IsWindow b, Gdk.Cursor.IsCursor c) => O.MethodInfo DeviceGrabMethodInfo a signature where
overloadedMethod _ = deviceGrab
#endif
foreign import ccall "gdk_device_list_axes" gdk_device_list_axes ::
Ptr Device ->
IO (Ptr (GList (Ptr Gdk.Atom.Atom)))
deviceListAxes ::
(B.CallStack.HasCallStack, MonadIO m, IsDevice a) =>
a
-> m [Gdk.Atom.Atom]
deviceListAxes device = liftIO $ do
device' <- unsafeManagedPtrCastPtr device
result <- gdk_device_list_axes device'
result' <- unpackGList result
result'' <- mapM (newPtr Gdk.Atom.Atom) result'
g_list_free result
touchManagedPtr device
return result''
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
data DeviceListAxesMethodInfo
instance (signature ~ (m [Gdk.Atom.Atom]), MonadIO m, IsDevice a) => O.MethodInfo DeviceListAxesMethodInfo a signature where
overloadedMethod _ = deviceListAxes
#endif
foreign import ccall "gdk_device_list_slave_devices" gdk_device_list_slave_devices ::
Ptr Device ->
IO (Ptr (GList (Ptr Device)))
deviceListSlaveDevices ::
(B.CallStack.HasCallStack, MonadIO m, IsDevice a) =>
a
-> m [Device]
deviceListSlaveDevices device = liftIO $ do
device' <- unsafeManagedPtrCastPtr device
result <- gdk_device_list_slave_devices device'
result' <- unpackGList result
result'' <- mapM (newObject Device) result'
g_list_free result
touchManagedPtr device
return result''
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
data DeviceListSlaveDevicesMethodInfo
instance (signature ~ (m [Device]), MonadIO m, IsDevice a) => O.MethodInfo DeviceListSlaveDevicesMethodInfo a signature where
overloadedMethod _ = deviceListSlaveDevices
#endif
foreign import ccall "gdk_device_set_axis_use" gdk_device_set_axis_use ::
Ptr Device ->
Word32 ->
CUInt ->
IO ()
deviceSetAxisUse ::
(B.CallStack.HasCallStack, MonadIO m, IsDevice a) =>
a
-> Word32
-> Gdk.Enums.AxisUse
-> m ()
deviceSetAxisUse device index_ use = liftIO $ do
device' <- unsafeManagedPtrCastPtr device
let use' = (fromIntegral . fromEnum) use
gdk_device_set_axis_use device' index_ use'
touchManagedPtr device
return ()
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
data DeviceSetAxisUseMethodInfo
instance (signature ~ (Word32 -> Gdk.Enums.AxisUse -> m ()), MonadIO m, IsDevice a) => O.MethodInfo DeviceSetAxisUseMethodInfo a signature where
overloadedMethod _ = deviceSetAxisUse
#endif
foreign import ccall "gdk_device_set_key" gdk_device_set_key ::
Ptr Device ->
Word32 ->
Word32 ->
CUInt ->
IO ()
deviceSetKey ::
(B.CallStack.HasCallStack, MonadIO m, IsDevice a) =>
a
-> Word32
-> Word32
-> [Gdk.Flags.ModifierType]
-> m ()
deviceSetKey device index_ keyval modifiers = liftIO $ do
device' <- unsafeManagedPtrCastPtr device
let modifiers' = gflagsToWord modifiers
gdk_device_set_key device' index_ keyval modifiers'
touchManagedPtr device
return ()
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
data DeviceSetKeyMethodInfo
instance (signature ~ (Word32 -> Word32 -> [Gdk.Flags.ModifierType] -> m ()), MonadIO m, IsDevice a) => O.MethodInfo DeviceSetKeyMethodInfo a signature where
overloadedMethod _ = deviceSetKey
#endif
foreign import ccall "gdk_device_set_mode" gdk_device_set_mode ::
Ptr Device ->
CUInt ->
IO CInt
deviceSetMode ::
(B.CallStack.HasCallStack, MonadIO m, IsDevice a) =>
a
-> Gdk.Enums.InputMode
-> m Bool
deviceSetMode device mode = liftIO $ do
device' <- unsafeManagedPtrCastPtr device
let mode' = (fromIntegral . fromEnum) mode
result <- gdk_device_set_mode device' mode'
let result' = (/= 0) result
touchManagedPtr device
return result'
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
data DeviceSetModeMethodInfo
instance (signature ~ (Gdk.Enums.InputMode -> m Bool), MonadIO m, IsDevice a) => O.MethodInfo DeviceSetModeMethodInfo a signature where
overloadedMethod _ = deviceSetMode
#endif
foreign import ccall "gdk_device_ungrab" gdk_device_ungrab ::
Ptr Device ->
Word32 ->
IO ()
deviceUngrab ::
(B.CallStack.HasCallStack, MonadIO m, IsDevice a) =>
a
-> Word32
-> m ()
deviceUngrab device time_ = liftIO $ do
device' <- unsafeManagedPtrCastPtr device
gdk_device_ungrab device' time_
touchManagedPtr device
return ()
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
data DeviceUngrabMethodInfo
instance (signature ~ (Word32 -> m ()), MonadIO m, IsDevice a) => O.MethodInfo DeviceUngrabMethodInfo a signature where
overloadedMethod _ = deviceUngrab
#endif
foreign import ccall "gdk_device_warp" gdk_device_warp ::
Ptr Device ->
Ptr Gdk.Screen.Screen ->
Int32 ->
Int32 ->
IO ()
deviceWarp ::
(B.CallStack.HasCallStack, MonadIO m, IsDevice a, Gdk.Screen.IsScreen b) =>
a
-> b
-> Int32
-> Int32
-> m ()
deviceWarp device screen x y = liftIO $ do
device' <- unsafeManagedPtrCastPtr device
screen' <- unsafeManagedPtrCastPtr screen
gdk_device_warp device' screen' x y
touchManagedPtr device
touchManagedPtr screen
return ()
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
data DeviceWarpMethodInfo
instance (signature ~ (b -> Int32 -> Int32 -> m ()), MonadIO m, IsDevice a, Gdk.Screen.IsScreen b) => O.MethodInfo DeviceWarpMethodInfo a signature where
overloadedMethod _ = deviceWarp
#endif
foreign import ccall "gdk_device_grab_info_libgtk_only" gdk_device_grab_info_libgtk_only ::
Ptr Gdk.Display.Display ->
Ptr Device ->
Ptr (Ptr Gdk.Window.Window) ->
Ptr CInt ->
IO CInt
deviceGrabInfoLibgtkOnly ::
(B.CallStack.HasCallStack, MonadIO m, Gdk.Display.IsDisplay a, IsDevice b) =>
a
-> b
-> m ((Bool, Gdk.Window.Window, Bool))
deviceGrabInfoLibgtkOnly display device = liftIO $ do
display' <- unsafeManagedPtrCastPtr display
device' <- unsafeManagedPtrCastPtr device
grabWindow <- allocMem :: IO (Ptr (Ptr Gdk.Window.Window))
ownerEvents <- allocMem :: IO (Ptr CInt)
result <- gdk_device_grab_info_libgtk_only display' device' grabWindow ownerEvents
let result' = (/= 0) result
grabWindow' <- peek grabWindow
grabWindow'' <- (newObject Gdk.Window.Window) grabWindow'
ownerEvents' <- peek ownerEvents
let ownerEvents'' = (/= 0) ownerEvents'
touchManagedPtr display
touchManagedPtr device
freeMem grabWindow
freeMem ownerEvents
return (result', grabWindow'', ownerEvents'')
#if defined(ENABLE_OVERLOADING) && !defined(__HADDOCK_VERSION__)
#endif