    {-# LANGUAGE TypeApplications #-}

    -- | Copyright  : Will Thompson, Iñaki García Etxebarria and Jonas Platte
    -- License    : LGPL-2.1
    -- Maintainer : Iñaki García Etxebarria
    --
    -- /No description available in the introspection data./

    #if !defined(__HADDOCK_VERSION__)
    #define ENABLE_OVERLOADING
    #endif

    module GI.GdkX11.Objects.X11DeviceManagerCore
        (

    -- * Exported types
        X11DeviceManagerCore(..)                ,
        IsX11DeviceManagerCore                  ,
        toX11DeviceManagerCore                  ,

     -- * Methods
    -- ** Overloaded methods #method:Overloaded methods#

    #if defined(ENABLE_OVERLOADING)
        ResolveX11DeviceManagerCoreMethod       ,
    #endif

        ) 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.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.Text as T
    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 GI.GObject.Objects.Object as GObject.Object
    import qualified GI.Gdk.Objects.DeviceManager as Gdk.DeviceManager

    -- | Memory-managed wrapper type.
    newtype X11DeviceManagerCore = X11DeviceManagerCore (SP.ManagedPtr X11DeviceManagerCore)
        deriving (X11DeviceManagerCore -> X11DeviceManagerCore -> Bool
    (X11DeviceManagerCore -> X11DeviceManagerCore -> Bool)
    -> (X11DeviceManagerCore -> X11DeviceManagerCore -> Bool)
    -> Eq X11DeviceManagerCore
    forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
    /= :: X11DeviceManagerCore -> X11DeviceManagerCore -> Bool
    $c/= :: X11DeviceManagerCore -> X11DeviceManagerCore -> Bool
    == :: X11DeviceManagerCore -> X11DeviceManagerCore -> Bool
    $c== :: X11DeviceManagerCore -> X11DeviceManagerCore -> Bool
    Eq)

    instance SP.ManagedPtrNewtype X11DeviceManagerCore where
        toManagedPtr :: X11DeviceManagerCore -> ManagedPtr X11DeviceManagerCore
    toManagedPtr (X11DeviceManagerCore p :: ManagedPtr X11DeviceManagerCore
    p) = ManagedPtr X11DeviceManagerCore
    p

    foreign import ccall "gdk_x11_device_manager_core_get_type"
        c_gdk_x11_device_manager_core_get_type :: IO B.Types.GType

    instance B.Types.TypedObject X11DeviceManagerCore where
        glibType :: IO GType
    glibType = IO GType
    c_gdk_x11_device_manager_core_get_type

    instance B.Types.GObject X11DeviceManagerCore

    -- | Convert 'X11DeviceManagerCore' to and from 'Data.GI.Base.GValue.GValue' with 'Data.GI.Base.GValue.toGValue' and 'Data.GI.Base.GValue.fromGValue'.
    instance B.GValue.IsGValue X11DeviceManagerCore where
        toGValue :: X11DeviceManagerCore -> IO GValue
    toGValue o :: X11DeviceManagerCore
    o = do
            GType
    gtype <- IO GType
    c_gdk_x11_device_manager_core_get_type
            X11DeviceManagerCore
    -> (Ptr X11DeviceManagerCore -> IO GValue) -> IO GValue
    forall a c.
    (HasCallStack, ManagedPtrNewtype a) =>
    a -> (Ptr a -> IO c) -> IO c
    B.ManagedPtr.withManagedPtr X11DeviceManagerCore
    o (GType
    -> (GValue -> Ptr X11DeviceManagerCore -> IO ())
    -> Ptr X11DeviceManagerCore
    -> IO GValue
    forall a. GType -> (GValue -> a -> IO ()) -> a -> IO GValue
    B.GValue.buildGValue GType
    gtype GValue -> Ptr X11DeviceManagerCore -> IO ()
    forall a. GObject a => GValue -> Ptr a -> IO ()
    B.GValue.set_object)

        fromGValue :: GValue -> IO X11DeviceManagerCore
    fromGValue gv :: GValue
    gv = do
            Ptr X11DeviceManagerCore
    ptr <- GValue -> IO (Ptr X11DeviceManagerCore)
    forall b. GObject b => GValue -> IO (Ptr b)
    B.GValue.get_object GValue
    gv :: IO (Ptr X11DeviceManagerCore)
            (ManagedPtr X11DeviceManagerCore -> X11DeviceManagerCore)
    -> Ptr X11DeviceManagerCore -> IO X11DeviceManagerCore
    forall a b.
    (HasCallStack, GObject a, GObject b) =>
    (ManagedPtr a -> a) -> Ptr b -> IO a
    B.ManagedPtr.newObject ManagedPtr X11DeviceManagerCore -> X11DeviceManagerCore
    X11DeviceManagerCore Ptr X11DeviceManagerCore
    ptr

    -- | Type class for types which can be safely cast to `X11DeviceManagerCore`, for instance with `toX11DeviceManagerCore`.
    class (SP.GObject o, O.IsDescendantOf X11DeviceManagerCore o) => IsX11DeviceManagerCore o
    instance (SP.GObject o, O.IsDescendantOf X11DeviceManagerCore o) => IsX11DeviceManagerCore o

    instance O.HasParentTypes X11DeviceManagerCore
    type instance O.ParentTypes X11DeviceManagerCore = '[Gdk.DeviceManager.DeviceManager, GObject.Object.Object]

    -- | Cast to `X11DeviceManagerCore`, for types for which this is known to be safe. For general casts, use `Data.GI.Base.ManagedPtr.castTo`.
    toX11DeviceManagerCore :: (MonadIO m, IsX11DeviceManagerCore o) => o -> m X11DeviceManagerCore
    toX11DeviceManagerCore :: o -> m X11DeviceManagerCore
    toX11DeviceManagerCore = IO X11DeviceManagerCore -> m X11DeviceManagerCore
    forall (m :: * -> *) a. MonadIO m => IO a -> m a
    liftIO (IO X11DeviceManagerCore -> m X11DeviceManagerCore)
    -> (o -> IO X11DeviceManagerCore) -> o -> m X11DeviceManagerCore
    forall b c a. (b -> c) -> (a -> b) -> a -> c
    . (ManagedPtr X11DeviceManagerCore -> X11DeviceManagerCore)
    -> o -> IO X11DeviceManagerCore
    forall o o'.
    (HasCallStack, ManagedPtrNewtype o, TypedObject o,
     ManagedPtrNewtype o', TypedObject o') =>
    (ManagedPtr o' -> o') -> o -> IO o'
    unsafeCastTo ManagedPtr X11DeviceManagerCore -> X11DeviceManagerCore
    X11DeviceManagerCore

    #if defined(ENABLE_OVERLOADING)
    type family ResolveX11DeviceManagerCoreMethod (t :: Symbol) (o :: *) :: * where
        ResolveX11DeviceManagerCoreMethod "bindProperty" o = GObject.Object.ObjectBindPropertyMethodInfo
        ResolveX11DeviceManagerCoreMethod "bindPropertyFull" o = GObject.Object.ObjectBindPropertyFullMethodInfo
        ResolveX11DeviceManagerCoreMethod "forceFloating" o = GObject.Object.ObjectForceFloatingMethodInfo
        ResolveX11DeviceManagerCoreMethod "freezeNotify" o = GObject.Object.ObjectFreezeNotifyMethodInfo
        ResolveX11DeviceManagerCoreMethod "getv" o = GObject.Object.ObjectGetvMethodInfo
        ResolveX11DeviceManagerCoreMethod "isFloating" o = GObject.Object.ObjectIsFloatingMethodInfo
        ResolveX11DeviceManagerCoreMethod "listDevices" o = Gdk.DeviceManager.DeviceManagerListDevicesMethodInfo
        ResolveX11DeviceManagerCoreMethod "notify" o = GObject.Object.ObjectNotifyMethodInfo
        ResolveX11DeviceManagerCoreMethod "notifyByPspec" o = GObject.Object.ObjectNotifyByPspecMethodInfo
        ResolveX11DeviceManagerCoreMethod "ref" o = GObject.Object.ObjectRefMethodInfo
        ResolveX11DeviceManagerCoreMethod "refSink" o = GObject.Object.ObjectRefSinkMethodInfo
        ResolveX11DeviceManagerCoreMethod "runDispose" o = GObject.Object.ObjectRunDisposeMethodInfo
        ResolveX11DeviceManagerCoreMethod "stealData" o = GObject.Object.ObjectStealDataMethodInfo
        ResolveX11DeviceManagerCoreMethod "stealQdata" o = GObject.Object.ObjectStealQdataMethodInfo
        ResolveX11DeviceManagerCoreMethod "thawNotify" o = GObject.Object.ObjectThawNotifyMethodInfo
        ResolveX11DeviceManagerCoreMethod "unref" o = GObject.Object.ObjectUnrefMethodInfo
        ResolveX11DeviceManagerCoreMethod "watchClosure" o = GObject.Object.ObjectWatchClosureMethodInfo
        ResolveX11DeviceManagerCoreMethod "getClientPointer" o = Gdk.DeviceManager.DeviceManagerGetClientPointerMethodInfo
        ResolveX11DeviceManagerCoreMethod "getData" o = GObject.Object.ObjectGetDataMethodInfo
        ResolveX11DeviceManagerCoreMethod "getDisplay" o = Gdk.DeviceManager.DeviceManagerGetDisplayMethodInfo
        ResolveX11DeviceManagerCoreMethod "getProperty" o = GObject.Object.ObjectGetPropertyMethodInfo
        ResolveX11DeviceManagerCoreMethod "getQdata" o = GObject.Object.ObjectGetQdataMethodInfo
        ResolveX11DeviceManagerCoreMethod "setData" o = GObject.Object.ObjectSetDataMethodInfo
        ResolveX11DeviceManagerCoreMethod "setDataFull" o = GObject.Object.ObjectSetDataFullMethodInfo
        ResolveX11DeviceManagerCoreMethod "setProperty" o = GObject.Object.ObjectSetPropertyMethodInfo
        ResolveX11DeviceManagerCoreMethod l o = O.MethodResolutionFailed l o

    instance (info ~ ResolveX11DeviceManagerCoreMethod t X11DeviceManagerCore, O.MethodInfo info X11DeviceManagerCore p) => OL.IsLabel t (X11DeviceManagerCore -> p) where
    #if MIN_VERSION_base(4,10,0)
        fromLabel = O.overloadedMethod @info
    #else
        fromLabel _ = O.overloadedMethod @info
    #endif

    #endif

    #if defined(ENABLE_OVERLOADING)
    instance O.HasAttributeList X11DeviceManagerCore
    type instance O.AttributeList X11DeviceManagerCore = X11DeviceManagerCoreAttributeList
    type X11DeviceManagerCoreAttributeList = ('[ '("display", Gdk.DeviceManager.DeviceManagerDisplayPropertyInfo)] :: [(Symbol, *)])
    #endif

    #if defined(ENABLE_OVERLOADING)
    #endif

    #if defined(ENABLE_OVERLOADING)
    type instance O.SignalList X11DeviceManagerCore = X11DeviceManagerCoreSignalList
    type X11DeviceManagerCoreSignalList = ('[ '("deviceAdded", Gdk.DeviceManager.DeviceManagerDeviceAddedSignalInfo), '("deviceChanged", Gdk.DeviceManager.DeviceManagerDeviceChangedSignalInfo), '("deviceRemoved", Gdk.DeviceManager.DeviceManagerDeviceRemovedSignalInfo), '("notify", GObject.Object.ObjectNotifySignalInfo)] :: [(Symbol, *)])

    #endif