{-# LANGUAGE TypeApplications #-}
#if (MIN_VERSION_haskell_gi_overloading(1,0,0) && !defined(__HADDOCK_VERSION__))
#define ENABLE_OVERLOADING
#endif
module GI.Gdk.Interfaces.DevicePad
(
DevicePad(..) ,
IsDevicePad ,
toDevicePad ,
#if defined(ENABLE_OVERLOADING)
ResolveDevicePadMethod ,
#endif
#if defined(ENABLE_OVERLOADING)
DevicePadGetFeatureGroupMethodInfo ,
#endif
devicePadGetFeatureGroup ,
#if defined(ENABLE_OVERLOADING)
DevicePadGetGroupNModesMethodInfo ,
#endif
devicePadGetGroupNModes ,
#if defined(ENABLE_OVERLOADING)
DevicePadGetNFeaturesMethodInfo ,
#endif
devicePadGetNFeatures ,
#if defined(ENABLE_OVERLOADING)
DevicePadGetNGroupsMethodInfo ,
#endif
devicePadGetNGroups ,
) 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.BasicTypes as B.Types
import qualified Data.GI.Base.ManagedPtr as B.ManagedPtr
import qualified Data.GI.Base.GArray as B.GArray
import qualified Data.GI.Base.GClosure as B.GClosure
import qualified Data.GI.Base.GError as B.GError
import qualified Data.GI.Base.GHashTable as B.GHT
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.GI.Base.Properties as B.Properties
import qualified Data.GI.Base.Signals as B.Signals
import qualified Control.Monad.IO.Class as MIO
import qualified Data.Coerce as Coerce
import qualified Data.Text as T
import qualified Data.Kind as DK
import qualified Data.ByteString.Char8 as B
import qualified Data.Map as Map
import qualified Foreign.Ptr as FP
import qualified GHC.OverloadedLabels as OL
import qualified GHC.Records as R
import qualified Data.Word as DW
import qualified Data.Int as DI
import qualified System.Posix.Types as SPT
import qualified Foreign.C.Types as FCT
#if MIN_VERSION_base(4,18,0)
import qualified GI.Cairo.Enums as Cairo.Enums
import qualified GI.Cairo.Structs.Context as Cairo.Context
import qualified GI.Cairo.Structs.Region as Cairo.Region
import qualified GI.Cairo.Structs.Surface as Cairo.Surface
import qualified GI.GLib.Structs.Bytes as GLib.Bytes
import qualified GI.GLib.Structs.String as GLib.String
import qualified GI.GObject.Objects.Object as GObject.Object
import {-# SOURCE #-} qualified GI.Gdk.Enums as Gdk.Enums
import {-# SOURCE #-} qualified GI.Gdk.Flags as Gdk.Flags
import {-# SOURCE #-} qualified GI.Gdk.Interfaces.Paintable as Gdk.Paintable
import {-# SOURCE #-} qualified GI.Gdk.Objects.AppLaunchContext as Gdk.AppLaunchContext
import {-# SOURCE #-} qualified GI.Gdk.Objects.CairoContext as Gdk.CairoContext
import {-# SOURCE #-} qualified GI.Gdk.Objects.Clipboard as Gdk.Clipboard
import {-# SOURCE #-} qualified GI.Gdk.Objects.ContentProvider as Gdk.ContentProvider
import {-# SOURCE #-} qualified GI.Gdk.Objects.Cursor as Gdk.Cursor
import {-# SOURCE #-} qualified GI.Gdk.Objects.Device as Gdk.Device
import {-# SOURCE #-} qualified GI.Gdk.Objects.DeviceTool as Gdk.DeviceTool
import {-# SOURCE #-} qualified GI.Gdk.Objects.Display as Gdk.Display
import {-# SOURCE #-} qualified GI.Gdk.Objects.DrawContext as Gdk.DrawContext
import {-# SOURCE #-} qualified GI.Gdk.Objects.Event as Gdk.Event
import {-# SOURCE #-} qualified GI.Gdk.Objects.FrameClock as Gdk.FrameClock
import {-# SOURCE #-} qualified GI.Gdk.Objects.GLContext as Gdk.GLContext
import {-# SOURCE #-} qualified GI.Gdk.Objects.Monitor as Gdk.Monitor
import {-# SOURCE #-} qualified GI.Gdk.Objects.Seat as Gdk.Seat
import {-# SOURCE #-} qualified GI.Gdk.Objects.Snapshot as Gdk.Snapshot
import {-# SOURCE #-} qualified GI.Gdk.Objects.Surface as Gdk.Surface
import {-# SOURCE #-} qualified GI.Gdk.Objects.Texture as Gdk.Texture
import {-# SOURCE #-} qualified GI.Gdk.Objects.VulkanContext as Gdk.VulkanContext
import {-# SOURCE #-} qualified GI.Gdk.Structs.ContentFormats as Gdk.ContentFormats
import {-# SOURCE #-} qualified GI.Gdk.Structs.DmabufFormats as Gdk.DmabufFormats
import {-# SOURCE #-} qualified GI.Gdk.Structs.EventSequence as Gdk.EventSequence
import {-# SOURCE #-} qualified GI.Gdk.Structs.FrameTimings as Gdk.FrameTimings
import {-# SOURCE #-} qualified GI.Gdk.Structs.KeymapKey as Gdk.KeymapKey
import {-# SOURCE #-} qualified GI.Gdk.Structs.Rectangle as Gdk.Rectangle
import {-# SOURCE #-} qualified GI.Gdk.Structs.TimeCoord as Gdk.TimeCoord
import qualified GI.GdkPixbuf.Objects.Pixbuf as GdkPixbuf.Pixbuf
import qualified GI.Gio.Callbacks as Gio.Callbacks
import qualified GI.Gio.Interfaces.AsyncResult as Gio.AsyncResult
import qualified GI.Gio.Interfaces.File as Gio.File
import qualified GI.Gio.Interfaces.Icon as Gio.Icon
import qualified GI.Gio.Interfaces.Initable as Gio.Initable
import qualified GI.Gio.Interfaces.ListModel as Gio.ListModel
import qualified GI.Gio.Interfaces.LoadableIcon as Gio.LoadableIcon
import qualified GI.Gio.Objects.AppLaunchContext as Gio.AppLaunchContext
import qualified GI.Gio.Objects.Cancellable as Gio.Cancellable
import qualified GI.Gio.Objects.InputStream as Gio.InputStream
import qualified GI.Gio.Objects.OutputStream as Gio.OutputStream
import qualified GI.Pango.Enums as Pango.Enums
#else
import qualified GI.GObject.Objects.Object as GObject.Object
import {-# SOURCE #-} qualified GI.Gdk.Enums as Gdk.Enums
import {-# SOURCE #-} qualified GI.Gdk.Objects.Device as Gdk.Device
#endif
newtype DevicePad = DevicePad (SP.ManagedPtr DevicePad)
deriving (DevicePad -> DevicePad -> Bool
(DevicePad -> DevicePad -> Bool)
-> (DevicePad -> DevicePad -> Bool) -> Eq DevicePad
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DevicePad -> DevicePad -> Bool
== :: DevicePad -> DevicePad -> Bool
$c/= :: DevicePad -> DevicePad -> Bool
/= :: DevicePad -> DevicePad -> Bool
Eq)
instance SP.ManagedPtrNewtype DevicePad where
toManagedPtr :: DevicePad -> ManagedPtr DevicePad
toManagedPtr (DevicePad ManagedPtr DevicePad
p) = ManagedPtr DevicePad
p
foreign import ccall "gdk_device_pad_get_type"
c_gdk_device_pad_get_type :: IO B.Types.GType
instance B.Types.TypedObject DevicePad where
glibType :: IO GType
glibType = IO GType
c_gdk_device_pad_get_type
instance B.Types.GObject DevicePad
class (SP.GObject o, O.IsDescendantOf DevicePad o) => IsDevicePad o
instance (SP.GObject o, O.IsDescendantOf DevicePad o) => IsDevicePad o
instance O.HasParentTypes DevicePad
type instance O.ParentTypes DevicePad = '[Gdk.Device.Device, GObject.Object.Object]
toDevicePad :: (MIO.MonadIO m, IsDevicePad o) => o -> m DevicePad
toDevicePad :: forall (m :: * -> *) o.
(MonadIO m, IsDevicePad o) =>
o -> m DevicePad
toDevicePad = IO DevicePad -> m DevicePad
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO DevicePad -> m DevicePad)
-> (o -> IO DevicePad) -> o -> m DevicePad
forall b c a. (b -> c) -> (a -> b) -> a -> c
. (ManagedPtr DevicePad -> DevicePad) -> o -> IO DevicePad
forall o o'.
(HasCallStack, ManagedPtrNewtype o, TypedObject o,
ManagedPtrNewtype o', TypedObject o') =>
(ManagedPtr o' -> o') -> o -> IO o'
B.ManagedPtr.unsafeCastTo ManagedPtr DevicePad -> DevicePad
DevicePad
instance B.GValue.IsGValue (Maybe DevicePad) where
gvalueGType_ :: IO GType
gvalueGType_ = IO GType
c_gdk_device_pad_get_type
gvalueSet_ :: Ptr GValue -> Maybe DevicePad -> IO ()
gvalueSet_ Ptr GValue
gv Maybe DevicePad
P.Nothing = Ptr GValue -> Ptr DevicePad -> IO ()
forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
B.GValue.set_object Ptr GValue
gv (Ptr DevicePad
forall a. Ptr a
FP.nullPtr :: FP.Ptr DevicePad)
gvalueSet_ Ptr GValue
gv (P.Just DevicePad
obj) = DevicePad -> (Ptr DevicePad -> IO ()) -> IO ()
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
B.ManagedPtr.withManagedPtr DevicePad
obj (Ptr GValue -> Ptr DevicePad -> IO ()
forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
B.GValue.set_object Ptr GValue
gv)
gvalueGet_ :: Ptr GValue -> IO (Maybe DevicePad)
gvalueGet_ Ptr GValue
gv = do
ptr <- Ptr GValue -> IO (Ptr DevicePad)
forall a. GObject a => Ptr GValue -> IO (Ptr a)
B.GValue.get_object Ptr GValue
gv :: IO (FP.Ptr DevicePad)
if ptr /= FP.nullPtr
then P.Just <$> B.ManagedPtr.newObject DevicePad ptr
else return P.Nothing
#if defined(ENABLE_OVERLOADING)
instance O.HasAttributeList DevicePad
type instance O.AttributeList DevicePad = DevicePadAttributeList
type DevicePadAttributeList = ('[ '("capsLockState", Gdk.Device.DeviceCapsLockStatePropertyInfo), '("direction", Gdk.Device.DeviceDirectionPropertyInfo), '("display", Gdk.Device.DeviceDisplayPropertyInfo), '("hasBidiLayouts", Gdk.Device.DeviceHasBidiLayoutsPropertyInfo), '("hasCursor", Gdk.Device.DeviceHasCursorPropertyInfo), '("modifierState", Gdk.Device.DeviceModifierStatePropertyInfo), '("nAxes", Gdk.Device.DeviceNAxesPropertyInfo), '("name", Gdk.Device.DeviceNamePropertyInfo), '("numLockState", Gdk.Device.DeviceNumLockStatePropertyInfo), '("numTouches", Gdk.Device.DeviceNumTouchesPropertyInfo), '("productId", Gdk.Device.DeviceProductIdPropertyInfo), '("scrollLockState", Gdk.Device.DeviceScrollLockStatePropertyInfo), '("seat", Gdk.Device.DeviceSeatPropertyInfo), '("source", Gdk.Device.DeviceSourcePropertyInfo), '("tool", Gdk.Device.DeviceToolPropertyInfo), '("vendorId", Gdk.Device.DeviceVendorIdPropertyInfo)] :: [(Symbol, DK.Type)])
#endif
#if defined(ENABLE_OVERLOADING)
#endif
#if defined(ENABLE_OVERLOADING)
type family ResolveDevicePadMethod (t :: Symbol) (o :: DK.Type) :: DK.Type where
ResolveDevicePadMethod "bindProperty" o = GObject.Object.ObjectBindPropertyMethodInfo
ResolveDevicePadMethod "bindPropertyFull" o = GObject.Object.ObjectBindPropertyFullMethodInfo
ResolveDevicePadMethod "forceFloating" o = GObject.Object.ObjectForceFloatingMethodInfo
ResolveDevicePadMethod "freezeNotify" o = GObject.Object.ObjectFreezeNotifyMethodInfo
ResolveDevicePadMethod "getv" o = GObject.Object.ObjectGetvMethodInfo
ResolveDevicePadMethod "hasBidiLayouts" o = Gdk.Device.DeviceHasBidiLayoutsMethodInfo
ResolveDevicePadMethod "isFloating" o = GObject.Object.ObjectIsFloatingMethodInfo
ResolveDevicePadMethod "notify" o = GObject.Object.ObjectNotifyMethodInfo
ResolveDevicePadMethod "notifyByPspec" o = GObject.Object.ObjectNotifyByPspecMethodInfo
ResolveDevicePadMethod "ref" o = GObject.Object.ObjectRefMethodInfo
ResolveDevicePadMethod "refSink" o = GObject.Object.ObjectRefSinkMethodInfo
ResolveDevicePadMethod "runDispose" o = GObject.Object.ObjectRunDisposeMethodInfo
ResolveDevicePadMethod "stealData" o = GObject.Object.ObjectStealDataMethodInfo
ResolveDevicePadMethod "stealQdata" o = GObject.Object.ObjectStealQdataMethodInfo
ResolveDevicePadMethod "thawNotify" o = GObject.Object.ObjectThawNotifyMethodInfo
ResolveDevicePadMethod "unref" o = GObject.Object.ObjectUnrefMethodInfo
ResolveDevicePadMethod "watchClosure" o = GObject.Object.ObjectWatchClosureMethodInfo
ResolveDevicePadMethod "getCapsLockState" o = Gdk.Device.DeviceGetCapsLockStateMethodInfo
ResolveDevicePadMethod "getData" o = GObject.Object.ObjectGetDataMethodInfo
ResolveDevicePadMethod "getDeviceTool" o = Gdk.Device.DeviceGetDeviceToolMethodInfo
ResolveDevicePadMethod "getDirection" o = Gdk.Device.DeviceGetDirectionMethodInfo
ResolveDevicePadMethod "getDisplay" o = Gdk.Device.DeviceGetDisplayMethodInfo
ResolveDevicePadMethod "getFeatureGroup" o = DevicePadGetFeatureGroupMethodInfo
ResolveDevicePadMethod "getGroupNModes" o = DevicePadGetGroupNModesMethodInfo
ResolveDevicePadMethod "getHasCursor" o = Gdk.Device.DeviceGetHasCursorMethodInfo
ResolveDevicePadMethod "getModifierState" o = Gdk.Device.DeviceGetModifierStateMethodInfo
ResolveDevicePadMethod "getNFeatures" o = DevicePadGetNFeaturesMethodInfo
ResolveDevicePadMethod "getNGroups" o = DevicePadGetNGroupsMethodInfo
ResolveDevicePadMethod "getName" o = Gdk.Device.DeviceGetNameMethodInfo
ResolveDevicePadMethod "getNumLockState" o = Gdk.Device.DeviceGetNumLockStateMethodInfo
ResolveDevicePadMethod "getNumTouches" o = Gdk.Device.DeviceGetNumTouchesMethodInfo
ResolveDevicePadMethod "getProductId" o = Gdk.Device.DeviceGetProductIdMethodInfo
ResolveDevicePadMethod "getProperty" o = GObject.Object.ObjectGetPropertyMethodInfo
ResolveDevicePadMethod "getQdata" o = GObject.Object.ObjectGetQdataMethodInfo
ResolveDevicePadMethod "getScrollLockState" o = Gdk.Device.DeviceGetScrollLockStateMethodInfo
ResolveDevicePadMethod "getSeat" o = Gdk.Device.DeviceGetSeatMethodInfo
ResolveDevicePadMethod "getSource" o = Gdk.Device.DeviceGetSourceMethodInfo
ResolveDevicePadMethod "getSurfaceAtPosition" o = Gdk.Device.DeviceGetSurfaceAtPositionMethodInfo
ResolveDevicePadMethod "getTimestamp" o = Gdk.Device.DeviceGetTimestampMethodInfo
ResolveDevicePadMethod "getVendorId" o = Gdk.Device.DeviceGetVendorIdMethodInfo
ResolveDevicePadMethod "setData" o = GObject.Object.ObjectSetDataMethodInfo
ResolveDevicePadMethod "setDataFull" o = GObject.Object.ObjectSetDataFullMethodInfo
ResolveDevicePadMethod "setProperty" o = GObject.Object.ObjectSetPropertyMethodInfo
ResolveDevicePadMethod l o = O.MethodResolutionFailed l o
instance (info ~ ResolveDevicePadMethod t DevicePad, O.OverloadedMethod info DevicePad p) => OL.IsLabel t (DevicePad -> p) where
#if MIN_VERSION_base(4,10,0)
fromLabel = O.overloadedMethod @info
#else
fromLabel _ = O.overloadedMethod @info
#endif
#if MIN_VERSION_base(4,13,0)
instance (info ~ ResolveDevicePadMethod t DevicePad, O.OverloadedMethod info DevicePad p, R.HasField t DevicePad p) => R.HasField t DevicePad p where
getField = O.overloadedMethod @info
#endif
instance (info ~ ResolveDevicePadMethod t DevicePad, O.OverloadedMethodInfo info DevicePad) => OL.IsLabel t (O.MethodProxy info DevicePad) where
#if MIN_VERSION_base(4,10,0)
fromLabel = O.MethodProxy
#else
fromLabel _ = O.MethodProxy
#endif
#endif
foreign import ccall "gdk_device_pad_get_feature_group" gdk_device_pad_get_feature_group ::
Ptr DevicePad ->
CUInt ->
Int32 ->
IO Int32
devicePadGetFeatureGroup ::
(B.CallStack.HasCallStack, MonadIO m, IsDevicePad a) =>
a
-> Gdk.Enums.DevicePadFeature
-> Int32
-> m Int32
devicePadGetFeatureGroup :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsDevicePad a) =>
a -> DevicePadFeature -> Int32 -> m Int32
devicePadGetFeatureGroup a
pad DevicePadFeature
feature Int32
featureIdx = IO Int32 -> m Int32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Int32 -> m Int32) -> IO Int32 -> m Int32
forall a b. (a -> b) -> a -> b
$ do
pad' <- a -> IO (Ptr DevicePad)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
pad
let feature' = (Int -> CUInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral (Int -> CUInt)
-> (DevicePadFeature -> Int) -> DevicePadFeature -> CUInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. DevicePadFeature -> Int
forall a. Enum a => a -> Int
fromEnum) DevicePadFeature
feature
result <- gdk_device_pad_get_feature_group pad' feature' featureIdx
touchManagedPtr pad
return result
#if defined(ENABLE_OVERLOADING)
data DevicePadGetFeatureGroupMethodInfo
instance (signature ~ (Gdk.Enums.DevicePadFeature -> Int32 -> m Int32), MonadIO m, IsDevicePad a) => O.OverloadedMethod DevicePadGetFeatureGroupMethodInfo a signature where
overloadedMethod = devicePadGetFeatureGroup
instance O.OverloadedMethodInfo DevicePadGetFeatureGroupMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gdk.Interfaces.DevicePad.devicePadGetFeatureGroup",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gdk-4.0.9/docs/GI-Gdk-Interfaces-DevicePad.html#v:devicePadGetFeatureGroup"
})
#endif
foreign import ccall "gdk_device_pad_get_group_n_modes" gdk_device_pad_get_group_n_modes ::
Ptr DevicePad ->
Int32 ->
IO Int32
devicePadGetGroupNModes ::
(B.CallStack.HasCallStack, MonadIO m, IsDevicePad a) =>
a
-> Int32
-> m Int32
devicePadGetGroupNModes :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsDevicePad a) =>
a -> Int32 -> m Int32
devicePadGetGroupNModes a
pad Int32
groupIdx = IO Int32 -> m Int32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Int32 -> m Int32) -> IO Int32 -> m Int32
forall a b. (a -> b) -> a -> b
$ do
pad' <- a -> IO (Ptr DevicePad)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
pad
result <- gdk_device_pad_get_group_n_modes pad' groupIdx
touchManagedPtr pad
return result
#if defined(ENABLE_OVERLOADING)
data DevicePadGetGroupNModesMethodInfo
instance (signature ~ (Int32 -> m Int32), MonadIO m, IsDevicePad a) => O.OverloadedMethod DevicePadGetGroupNModesMethodInfo a signature where
overloadedMethod = devicePadGetGroupNModes
instance O.OverloadedMethodInfo DevicePadGetGroupNModesMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gdk.Interfaces.DevicePad.devicePadGetGroupNModes",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gdk-4.0.9/docs/GI-Gdk-Interfaces-DevicePad.html#v:devicePadGetGroupNModes"
})
#endif
foreign import ccall "gdk_device_pad_get_n_features" gdk_device_pad_get_n_features ::
Ptr DevicePad ->
CUInt ->
IO Int32
devicePadGetNFeatures ::
(B.CallStack.HasCallStack, MonadIO m, IsDevicePad a) =>
a
-> Gdk.Enums.DevicePadFeature
-> m Int32
devicePadGetNFeatures :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsDevicePad a) =>
a -> DevicePadFeature -> m Int32
devicePadGetNFeatures a
pad DevicePadFeature
feature = IO Int32 -> m Int32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Int32 -> m Int32) -> IO Int32 -> m Int32
forall a b. (a -> b) -> a -> b
$ do
pad' <- a -> IO (Ptr DevicePad)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
pad
let feature' = (Int -> CUInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral (Int -> CUInt)
-> (DevicePadFeature -> Int) -> DevicePadFeature -> CUInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. DevicePadFeature -> Int
forall a. Enum a => a -> Int
fromEnum) DevicePadFeature
feature
result <- gdk_device_pad_get_n_features pad' feature'
touchManagedPtr pad
return result
#if defined(ENABLE_OVERLOADING)
data DevicePadGetNFeaturesMethodInfo
instance (signature ~ (Gdk.Enums.DevicePadFeature -> m Int32), MonadIO m, IsDevicePad a) => O.OverloadedMethod DevicePadGetNFeaturesMethodInfo a signature where
overloadedMethod = devicePadGetNFeatures
instance O.OverloadedMethodInfo DevicePadGetNFeaturesMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gdk.Interfaces.DevicePad.devicePadGetNFeatures",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gdk-4.0.9/docs/GI-Gdk-Interfaces-DevicePad.html#v:devicePadGetNFeatures"
})
#endif
foreign import ccall "gdk_device_pad_get_n_groups" gdk_device_pad_get_n_groups ::
Ptr DevicePad ->
IO Int32
devicePadGetNGroups ::
(B.CallStack.HasCallStack, MonadIO m, IsDevicePad a) =>
a
-> m Int32
devicePadGetNGroups :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsDevicePad a) =>
a -> m Int32
devicePadGetNGroups a
pad = IO Int32 -> m Int32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Int32 -> m Int32) -> IO Int32 -> m Int32
forall a b. (a -> b) -> a -> b
$ do
pad' <- a -> IO (Ptr DevicePad)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
pad
result <- gdk_device_pad_get_n_groups pad'
touchManagedPtr pad
return result
#if defined(ENABLE_OVERLOADING)
data DevicePadGetNGroupsMethodInfo
instance (signature ~ (m Int32), MonadIO m, IsDevicePad a) => O.OverloadedMethod DevicePadGetNGroupsMethodInfo a signature where
overloadedMethod = devicePadGetNGroups
instance O.OverloadedMethodInfo DevicePadGetNGroupsMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gdk.Interfaces.DevicePad.devicePadGetNGroups",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gdk-4.0.9/docs/GI-Gdk-Interfaces-DevicePad.html#v:devicePadGetNGroups"
})
#endif
#if defined(ENABLE_OVERLOADING)
type instance O.SignalList DevicePad = DevicePadSignalList
type DevicePadSignalList = ('[ '("changed", Gdk.Device.DeviceChangedSignalInfo), '("notify", GObject.Object.ObjectNotifySignalInfo), '("toolChanged", Gdk.Device.DeviceToolChangedSignalInfo)] :: [(Symbol, DK.Type)])
#endif