    {- |
    Copyright  : Will Thompson, Iñaki García Etxebarria and Jonas Platte
    License    : LGPL-2.1
    Maintainer : Iñaki García Etxebarria (garetxe@gmail.com)

    /No description available in the introspection data./
    -}

    #define ENABLE_OVERLOADING \
           (!defined(__HADDOCK_VERSION__))

    module GI.GdkX11.Objects.X11Monitor
        (

    -- * Exported types
        X11Monitor(..)                          ,
        IsX11Monitor                            ,
        toX11Monitor                            ,
        noX11Monitor                            ,

     -- * Methods
    -- ** getOutput #method:getOutput#

        x11MonitorGetOutput                     ,

        ) 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.Objects.Monitor as Gdk.Monitor

    -- | Memory-managed wrapper type.
    newtype X11Monitor = X11Monitor (ManagedPtr X11Monitor)
    foreign import ccall "gdk_x11_monitor_get_type"
        c_gdk_x11_monitor_get_type :: IO GType

    instance GObject X11Monitor where
        gobjectType _ = c_gdk_x11_monitor_get_type

    -- | Type class for types which can be safely cast to `X11Monitor`, for instance with `toX11Monitor`.
    class GObject o => IsX11Monitor o
    #if MIN_VERSION_base(4,9,0)
    instance {-# OVERLAPPABLE #-} (GObject a, O.UnknownAncestorError X11Monitor a) =>
        IsX11Monitor a
    #endif
    instance IsX11Monitor X11Monitor
    instance Gdk.Monitor.IsMonitor X11Monitor
    instance GObject.Object.IsObject X11Monitor

    -- | Cast to `X11Monitor`, for types for which this is known to be safe. For general casts, use `Data.GI.Base.ManagedPtr.castTo`.
    toX11Monitor :: (MonadIO m, IsX11Monitor o) => o -> m X11Monitor
    toX11Monitor = liftIO . unsafeCastTo X11Monitor

    -- | A convenience alias for `Nothing` :: `Maybe` `X11Monitor`.
    noX11Monitor :: Maybe X11Monitor
    noX11Monitor = Nothing

    #if ENABLE_OVERLOADING
    type family ResolveX11MonitorMethod (t :: Symbol) (o :: *) :: * where
        ResolveX11MonitorMethod "bindProperty" o = GObject.Object.ObjectBindPropertyMethodInfo
        ResolveX11MonitorMethod "bindPropertyFull" o = GObject.Object.ObjectBindPropertyFullMethodInfo
        ResolveX11MonitorMethod "forceFloating" o = GObject.Object.ObjectForceFloatingMethodInfo
        ResolveX11MonitorMethod "freezeNotify" o = GObject.Object.ObjectFreezeNotifyMethodInfo
        ResolveX11MonitorMethod "getv" o = GObject.Object.ObjectGetvMethodInfo
        ResolveX11MonitorMethod "isFloating" o = GObject.Object.ObjectIsFloatingMethodInfo
        ResolveX11MonitorMethod "isPrimary" o = Gdk.Monitor.MonitorIsPrimaryMethodInfo
        ResolveX11MonitorMethod "notify" o = GObject.Object.ObjectNotifyMethodInfo
        ResolveX11MonitorMethod "notifyByPspec" o = GObject.Object.ObjectNotifyByPspecMethodInfo
        ResolveX11MonitorMethod "ref" o = GObject.Object.ObjectRefMethodInfo
        ResolveX11MonitorMethod "refSink" o = GObject.Object.ObjectRefSinkMethodInfo
        ResolveX11MonitorMethod "runDispose" o = GObject.Object.ObjectRunDisposeMethodInfo
        ResolveX11MonitorMethod "stealData" o = GObject.Object.ObjectStealDataMethodInfo
        ResolveX11MonitorMethod "stealQdata" o = GObject.Object.ObjectStealQdataMethodInfo
        ResolveX11MonitorMethod "thawNotify" o = GObject.Object.ObjectThawNotifyMethodInfo
        ResolveX11MonitorMethod "unref" o = GObject.Object.ObjectUnrefMethodInfo
        ResolveX11MonitorMethod "watchClosure" o = GObject.Object.ObjectWatchClosureMethodInfo
        ResolveX11MonitorMethod "getData" o = GObject.Object.ObjectGetDataMethodInfo
        ResolveX11MonitorMethod "getDisplay" o = Gdk.Monitor.MonitorGetDisplayMethodInfo
        ResolveX11MonitorMethod "getGeometry" o = Gdk.Monitor.MonitorGetGeometryMethodInfo
        ResolveX11MonitorMethod "getHeightMm" o = Gdk.Monitor.MonitorGetHeightMmMethodInfo
        ResolveX11MonitorMethod "getManufacturer" o = Gdk.Monitor.MonitorGetManufacturerMethodInfo
        ResolveX11MonitorMethod "getModel" o = Gdk.Monitor.MonitorGetModelMethodInfo
        ResolveX11MonitorMethod "getProperty" o = GObject.Object.ObjectGetPropertyMethodInfo
        ResolveX11MonitorMethod "getQdata" o = GObject.Object.ObjectGetQdataMethodInfo
        ResolveX11MonitorMethod "getRefreshRate" o = Gdk.Monitor.MonitorGetRefreshRateMethodInfo
        ResolveX11MonitorMethod "getScaleFactor" o = Gdk.Monitor.MonitorGetScaleFactorMethodInfo
        ResolveX11MonitorMethod "getSubpixelLayout" o = Gdk.Monitor.MonitorGetSubpixelLayoutMethodInfo
        ResolveX11MonitorMethod "getWidthMm" o = Gdk.Monitor.MonitorGetWidthMmMethodInfo
        ResolveX11MonitorMethod "getWorkarea" o = Gdk.Monitor.MonitorGetWorkareaMethodInfo
        ResolveX11MonitorMethod "setData" o = GObject.Object.ObjectSetDataMethodInfo
        ResolveX11MonitorMethod "setProperty" o = GObject.Object.ObjectSetPropertyMethodInfo
        ResolveX11MonitorMethod l o = O.MethodResolutionFailed l o

    instance (info ~ ResolveX11MonitorMethod t X11Monitor, O.MethodInfo info X11Monitor p) => O.IsLabelProxy t (X11Monitor -> p) where
        fromLabelProxy _ = O.overloadedMethod (O.MethodProxy :: O.MethodProxy info)

    #if MIN_VERSION_base(4,9,0)
    instance (info ~ ResolveX11MonitorMethod t X11Monitor, O.MethodInfo info X11Monitor p) => O.IsLabel t (X11Monitor -> 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

    #if ENABLE_OVERLOADING
    instance O.HasAttributeList X11Monitor
    type instance O.AttributeList X11Monitor = X11MonitorAttributeList
    type X11MonitorAttributeList = ('[ '("display", Gdk.Monitor.MonitorDisplayPropertyInfo), '("geometry", Gdk.Monitor.MonitorGeometryPropertyInfo), '("heightMm", Gdk.Monitor.MonitorHeightMmPropertyInfo), '("manufacturer", Gdk.Monitor.MonitorManufacturerPropertyInfo), '("model", Gdk.Monitor.MonitorModelPropertyInfo), '("refreshRate", Gdk.Monitor.MonitorRefreshRatePropertyInfo), '("scaleFactor", Gdk.Monitor.MonitorScaleFactorPropertyInfo), '("subpixelLayout", Gdk.Monitor.MonitorSubpixelLayoutPropertyInfo), '("widthMm", Gdk.Monitor.MonitorWidthMmPropertyInfo), '("workarea", Gdk.Monitor.MonitorWorkareaPropertyInfo)] :: [(Symbol, *)])
    #endif

    #if ENABLE_OVERLOADING
    #endif

    #if ENABLE_OVERLOADING
    type instance O.SignalList X11Monitor = X11MonitorSignalList
    type X11MonitorSignalList = ('[ '("invalidate", Gdk.Monitor.MonitorInvalidateSignalInfo), '("notify", GObject.Object.ObjectNotifySignalInfo)] :: [(Symbol, *)])

    #endif

    -- method X11Monitor::get_output
    -- method type : MemberFunction
    -- Args : [Arg {argCName = "monitor", argType = TInterface (Name {namespace = "Gdk", name = "Monitor"}), direction = DirectionIn, mayBeNull = False, argDoc = Documentation {rawDocText = Nothing, sinceVersion = Nothing}, argScope = ScopeTypeInvalid, argClosure = -1, argDestroy = -1, argCallerAllocates = False, transfer = TransferNothing}]
    -- Lengths : []
    -- returnType : Just (TBasicType TULong)
    -- throws : False
    -- Skip return : False

    foreign import ccall "gdk_x11_monitor_get_output" gdk_x11_monitor_get_output ::
        Ptr Gdk.Monitor.Monitor ->              -- monitor : TInterface (Name {namespace = "Gdk", name = "Monitor"})
        IO CULong

    {- |
    /No description available in the introspection data./
    -}
    x11MonitorGetOutput ::
        (B.CallStack.HasCallStack, MonadIO m, Gdk.Monitor.IsMonitor a) =>
        a
        -> m CULong
    x11MonitorGetOutput monitor = liftIO $ do
        monitor' <- unsafeManagedPtrCastPtr monitor
        result <- gdk_x11_monitor_get_output monitor'
        touchManagedPtr monitor
        return result

    #if ENABLE_OVERLOADING
    #endif