{-# LANGUAGE TypeApplications #-}
#if (MIN_VERSION_haskell_gi_overloading(1,0,0) && !defined(__HADDOCK_VERSION__))
#define ENABLE_OVERLOADING
#endif
module GI.Pango.Objects.EngineShape
(
EngineShape(..) ,
IsEngineShape ,
toEngineShape ,
#if defined(ENABLE_OVERLOADING)
ResolveEngineShapeMethod ,
#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.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 {-# SOURCE #-} qualified GI.Pango.Objects.Engine as Pango.Engine
newtype EngineShape = EngineShape (SP.ManagedPtr EngineShape)
deriving (EngineShape -> EngineShape -> Bool
(EngineShape -> EngineShape -> Bool)
-> (EngineShape -> EngineShape -> Bool) -> Eq EngineShape
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: EngineShape -> EngineShape -> Bool
$c/= :: EngineShape -> EngineShape -> Bool
== :: EngineShape -> EngineShape -> Bool
$c== :: EngineShape -> EngineShape -> Bool
Eq)
instance SP.ManagedPtrNewtype EngineShape where
toManagedPtr :: EngineShape -> ManagedPtr EngineShape
toManagedPtr (EngineShape ManagedPtr EngineShape
p) = ManagedPtr EngineShape
p
foreign import ccall "pango_engine_shape_get_type"
c_pango_engine_shape_get_type :: IO B.Types.GType
instance B.Types.TypedObject EngineShape where
glibType :: IO GType
glibType = IO GType
c_pango_engine_shape_get_type
instance B.Types.GObject EngineShape
instance B.GValue.IsGValue EngineShape where
toGValue :: EngineShape -> IO GValue
toGValue EngineShape
o = do
GType
gtype <- IO GType
c_pango_engine_shape_get_type
EngineShape -> (Ptr EngineShape -> IO GValue) -> IO GValue
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
B.ManagedPtr.withManagedPtr EngineShape
o (GType
-> (GValue -> Ptr EngineShape -> IO ())
-> Ptr EngineShape
-> IO GValue
forall a. GType -> (GValue -> a -> IO ()) -> a -> IO GValue
B.GValue.buildGValue GType
gtype GValue -> Ptr EngineShape -> IO ()
forall a. GObject a => GValue -> Ptr a -> IO ()
B.GValue.set_object)
fromGValue :: GValue -> IO EngineShape
fromGValue GValue
gv = do
Ptr EngineShape
ptr <- GValue -> IO (Ptr EngineShape)
forall b. GObject b => GValue -> IO (Ptr b)
B.GValue.get_object GValue
gv :: IO (Ptr EngineShape)
(ManagedPtr EngineShape -> EngineShape)
-> Ptr EngineShape -> IO EngineShape
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
B.ManagedPtr.newObject ManagedPtr EngineShape -> EngineShape
EngineShape Ptr EngineShape
ptr
class (SP.GObject o, O.IsDescendantOf EngineShape o) => IsEngineShape o
instance (SP.GObject o, O.IsDescendantOf EngineShape o) => IsEngineShape o
instance O.HasParentTypes EngineShape
type instance O.ParentTypes EngineShape = '[Pango.Engine.Engine, GObject.Object.Object]
toEngineShape :: (MonadIO m, IsEngineShape o) => o -> m EngineShape
toEngineShape :: o -> m EngineShape
toEngineShape = IO EngineShape -> m EngineShape
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO EngineShape -> m EngineShape)
-> (o -> IO EngineShape) -> o -> m EngineShape
forall b c a. (b -> c) -> (a -> b) -> a -> c
. (ManagedPtr EngineShape -> EngineShape) -> o -> IO EngineShape
forall o o'.
(HasCallStack, ManagedPtrNewtype o, TypedObject o,
ManagedPtrNewtype o', TypedObject o') =>
(ManagedPtr o' -> o') -> o -> IO o'
unsafeCastTo ManagedPtr EngineShape -> EngineShape
EngineShape
#if defined(ENABLE_OVERLOADING)
type family ResolveEngineShapeMethod (t :: Symbol) (o :: *) :: * where
ResolveEngineShapeMethod "bindProperty" o = GObject.Object.ObjectBindPropertyMethodInfo
ResolveEngineShapeMethod "bindPropertyFull" o = GObject.Object.ObjectBindPropertyFullMethodInfo
ResolveEngineShapeMethod "forceFloating" o = GObject.Object.ObjectForceFloatingMethodInfo
ResolveEngineShapeMethod "freezeNotify" o = GObject.Object.ObjectFreezeNotifyMethodInfo
ResolveEngineShapeMethod "getv" o = GObject.Object.ObjectGetvMethodInfo
ResolveEngineShapeMethod "isFloating" o = GObject.Object.ObjectIsFloatingMethodInfo
ResolveEngineShapeMethod "notify" o = GObject.Object.ObjectNotifyMethodInfo
ResolveEngineShapeMethod "notifyByPspec" o = GObject.Object.ObjectNotifyByPspecMethodInfo
ResolveEngineShapeMethod "ref" o = GObject.Object.ObjectRefMethodInfo
ResolveEngineShapeMethod "refSink" o = GObject.Object.ObjectRefSinkMethodInfo
ResolveEngineShapeMethod "runDispose" o = GObject.Object.ObjectRunDisposeMethodInfo
ResolveEngineShapeMethod "stealData" o = GObject.Object.ObjectStealDataMethodInfo
ResolveEngineShapeMethod "stealQdata" o = GObject.Object.ObjectStealQdataMethodInfo
ResolveEngineShapeMethod "thawNotify" o = GObject.Object.ObjectThawNotifyMethodInfo
ResolveEngineShapeMethod "unref" o = GObject.Object.ObjectUnrefMethodInfo
ResolveEngineShapeMethod "watchClosure" o = GObject.Object.ObjectWatchClosureMethodInfo
ResolveEngineShapeMethod "getData" o = GObject.Object.ObjectGetDataMethodInfo
ResolveEngineShapeMethod "getProperty" o = GObject.Object.ObjectGetPropertyMethodInfo
ResolveEngineShapeMethod "getQdata" o = GObject.Object.ObjectGetQdataMethodInfo
ResolveEngineShapeMethod "setData" o = GObject.Object.ObjectSetDataMethodInfo
ResolveEngineShapeMethod "setDataFull" o = GObject.Object.ObjectSetDataFullMethodInfo
ResolveEngineShapeMethod "setProperty" o = GObject.Object.ObjectSetPropertyMethodInfo
ResolveEngineShapeMethod l o = O.MethodResolutionFailed l o
instance (info ~ ResolveEngineShapeMethod t EngineShape, O.MethodInfo info EngineShape p) => OL.IsLabel t (EngineShape -> 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 EngineShape
type instance O.AttributeList EngineShape = EngineShapeAttributeList
type EngineShapeAttributeList = ('[ ] :: [(Symbol, *)])
#endif
#if defined(ENABLE_OVERLOADING)
#endif
#if defined(ENABLE_OVERLOADING)
type instance O.SignalList EngineShape = EngineShapeSignalList
type EngineShapeSignalList = ('[ '("notify", GObject.Object.ObjectNotifySignalInfo)] :: [(Symbol, *)])
#endif