{-# LANGUAGE ImplicitParams, RankNTypes, TypeApplications #-}
#if (MIN_VERSION_haskell_gi_overloading(1,0,0) && !defined(__HADDOCK_VERSION__))
#define ENABLE_OVERLOADING
#endif
module GI.Wnck.Objects.ClassGroup
(
ClassGroup(..) ,
IsClassGroup ,
toClassGroup ,
#if defined(ENABLE_OVERLOADING)
ResolveClassGroupMethod ,
#endif
classGroupGet ,
#if defined(ENABLE_OVERLOADING)
ClassGroupGetIconMethodInfo ,
#endif
classGroupGetIcon ,
#if defined(ENABLE_OVERLOADING)
ClassGroupGetIconSurfaceMethodInfo ,
#endif
classGroupGetIconSurface ,
#if defined(ENABLE_OVERLOADING)
ClassGroupGetIdMethodInfo ,
#endif
classGroupGetId ,
#if defined(ENABLE_OVERLOADING)
ClassGroupGetMiniIconMethodInfo ,
#endif
classGroupGetMiniIcon ,
#if defined(ENABLE_OVERLOADING)
ClassGroupGetMiniIconSurfaceMethodInfo ,
#endif
classGroupGetMiniIconSurface ,
#if defined(ENABLE_OVERLOADING)
ClassGroupGetNameMethodInfo ,
#endif
classGroupGetName ,
#if defined(ENABLE_OVERLOADING)
ClassGroupGetResClassMethodInfo ,
#endif
classGroupGetResClass ,
#if defined(ENABLE_OVERLOADING)
ClassGroupGetWindowsMethodInfo ,
#endif
classGroupGetWindows ,
ClassGroupIconChangedCallback ,
#if defined(ENABLE_OVERLOADING)
ClassGroupIconChangedSignalInfo ,
#endif
afterClassGroupIconChanged ,
onClassGroupIconChanged ,
ClassGroupNameChangedCallback ,
#if defined(ENABLE_OVERLOADING)
ClassGroupNameChangedSignalInfo ,
#endif
afterClassGroupNameChanged ,
onClassGroupNameChanged ,
) 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 GI.Cairo.Structs.Surface as Cairo.Surface
import qualified GI.GObject.Objects.Object as GObject.Object
import qualified GI.GdkPixbuf.Objects.Pixbuf as GdkPixbuf.Pixbuf
import {-# SOURCE #-} qualified GI.Wnck.Objects.Window as Wnck.Window
newtype ClassGroup = ClassGroup (SP.ManagedPtr ClassGroup)
deriving (ClassGroup -> ClassGroup -> Bool
(ClassGroup -> ClassGroup -> Bool)
-> (ClassGroup -> ClassGroup -> Bool) -> Eq ClassGroup
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ClassGroup -> ClassGroup -> Bool
== :: ClassGroup -> ClassGroup -> Bool
$c/= :: ClassGroup -> ClassGroup -> Bool
/= :: ClassGroup -> ClassGroup -> Bool
Eq)
instance SP.ManagedPtrNewtype ClassGroup where
toManagedPtr :: ClassGroup -> ManagedPtr ClassGroup
toManagedPtr (ClassGroup ManagedPtr ClassGroup
p) = ManagedPtr ClassGroup
p
foreign import ccall "wnck_class_group_get_type"
c_wnck_class_group_get_type :: IO B.Types.GType
instance B.Types.TypedObject ClassGroup where
glibType :: IO GType
glibType = IO GType
c_wnck_class_group_get_type
instance B.Types.GObject ClassGroup
class (SP.GObject o, O.IsDescendantOf ClassGroup o) => IsClassGroup o
instance (SP.GObject o, O.IsDescendantOf ClassGroup o) => IsClassGroup o
instance O.HasParentTypes ClassGroup
type instance O.ParentTypes ClassGroup = '[GObject.Object.Object]
toClassGroup :: (MIO.MonadIO m, IsClassGroup o) => o -> m ClassGroup
toClassGroup :: forall (m :: * -> *) o.
(MonadIO m, IsClassGroup o) =>
o -> m ClassGroup
toClassGroup = IO ClassGroup -> m ClassGroup
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO ClassGroup -> m ClassGroup)
-> (o -> IO ClassGroup) -> o -> m ClassGroup
forall b c a. (b -> c) -> (a -> b) -> a -> c
. (ManagedPtr ClassGroup -> ClassGroup) -> o -> IO ClassGroup
forall o o'.
(HasCallStack, ManagedPtrNewtype o, TypedObject o,
ManagedPtrNewtype o', TypedObject o') =>
(ManagedPtr o' -> o') -> o -> IO o'
B.ManagedPtr.unsafeCastTo ManagedPtr ClassGroup -> ClassGroup
ClassGroup
instance B.GValue.IsGValue (Maybe ClassGroup) where
gvalueGType_ :: IO GType
gvalueGType_ = IO GType
c_wnck_class_group_get_type
gvalueSet_ :: Ptr GValue -> Maybe ClassGroup -> IO ()
gvalueSet_ Ptr GValue
gv Maybe ClassGroup
P.Nothing = Ptr GValue -> Ptr ClassGroup -> IO ()
forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
B.GValue.set_object Ptr GValue
gv (Ptr ClassGroup
forall a. Ptr a
FP.nullPtr :: FP.Ptr ClassGroup)
gvalueSet_ Ptr GValue
gv (P.Just ClassGroup
obj) = ClassGroup -> (Ptr ClassGroup -> IO ()) -> IO ()
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
B.ManagedPtr.withManagedPtr ClassGroup
obj (Ptr GValue -> Ptr ClassGroup -> IO ()
forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
B.GValue.set_object Ptr GValue
gv)
gvalueGet_ :: Ptr GValue -> IO (Maybe ClassGroup)
gvalueGet_ Ptr GValue
gv = do
Ptr ClassGroup
ptr <- Ptr GValue -> IO (Ptr ClassGroup)
forall a. GObject a => Ptr GValue -> IO (Ptr a)
B.GValue.get_object Ptr GValue
gv :: IO (FP.Ptr ClassGroup)
if Ptr ClassGroup
ptr Ptr ClassGroup -> Ptr ClassGroup -> Bool
forall a. Eq a => a -> a -> Bool
/= Ptr ClassGroup
forall a. Ptr a
FP.nullPtr
then ClassGroup -> Maybe ClassGroup
forall a. a -> Maybe a
P.Just (ClassGroup -> Maybe ClassGroup)
-> IO ClassGroup -> IO (Maybe ClassGroup)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
<$> (ManagedPtr ClassGroup -> ClassGroup)
-> Ptr ClassGroup -> IO ClassGroup
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
B.ManagedPtr.newObject ManagedPtr ClassGroup -> ClassGroup
ClassGroup Ptr ClassGroup
ptr
else Maybe ClassGroup -> IO (Maybe ClassGroup)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Maybe ClassGroup
forall a. Maybe a
P.Nothing
#if defined(ENABLE_OVERLOADING)
type family ResolveClassGroupMethod (t :: Symbol) (o :: DK.Type) :: DK.Type where
ResolveClassGroupMethod "bindProperty" o = GObject.Object.ObjectBindPropertyMethodInfo
ResolveClassGroupMethod "bindPropertyFull" o = GObject.Object.ObjectBindPropertyFullMethodInfo
ResolveClassGroupMethod "forceFloating" o = GObject.Object.ObjectForceFloatingMethodInfo
ResolveClassGroupMethod "freezeNotify" o = GObject.Object.ObjectFreezeNotifyMethodInfo
ResolveClassGroupMethod "getv" o = GObject.Object.ObjectGetvMethodInfo
ResolveClassGroupMethod "isFloating" o = GObject.Object.ObjectIsFloatingMethodInfo
ResolveClassGroupMethod "notify" o = GObject.Object.ObjectNotifyMethodInfo
ResolveClassGroupMethod "notifyByPspec" o = GObject.Object.ObjectNotifyByPspecMethodInfo
ResolveClassGroupMethod "ref" o = GObject.Object.ObjectRefMethodInfo
ResolveClassGroupMethod "refSink" o = GObject.Object.ObjectRefSinkMethodInfo
ResolveClassGroupMethod "runDispose" o = GObject.Object.ObjectRunDisposeMethodInfo
ResolveClassGroupMethod "stealData" o = GObject.Object.ObjectStealDataMethodInfo
ResolveClassGroupMethod "stealQdata" o = GObject.Object.ObjectStealQdataMethodInfo
ResolveClassGroupMethod "thawNotify" o = GObject.Object.ObjectThawNotifyMethodInfo
ResolveClassGroupMethod "unref" o = GObject.Object.ObjectUnrefMethodInfo
ResolveClassGroupMethod "watchClosure" o = GObject.Object.ObjectWatchClosureMethodInfo
ResolveClassGroupMethod "getData" o = GObject.Object.ObjectGetDataMethodInfo
ResolveClassGroupMethod "getIcon" o = ClassGroupGetIconMethodInfo
ResolveClassGroupMethod "getIconSurface" o = ClassGroupGetIconSurfaceMethodInfo
ResolveClassGroupMethod "getId" o = ClassGroupGetIdMethodInfo
ResolveClassGroupMethod "getMiniIcon" o = ClassGroupGetMiniIconMethodInfo
ResolveClassGroupMethod "getMiniIconSurface" o = ClassGroupGetMiniIconSurfaceMethodInfo
ResolveClassGroupMethod "getName" o = ClassGroupGetNameMethodInfo
ResolveClassGroupMethod "getProperty" o = GObject.Object.ObjectGetPropertyMethodInfo
ResolveClassGroupMethod "getQdata" o = GObject.Object.ObjectGetQdataMethodInfo
ResolveClassGroupMethod "getResClass" o = ClassGroupGetResClassMethodInfo
ResolveClassGroupMethod "getWindows" o = ClassGroupGetWindowsMethodInfo
ResolveClassGroupMethod "setData" o = GObject.Object.ObjectSetDataMethodInfo
ResolveClassGroupMethod "setDataFull" o = GObject.Object.ObjectSetDataFullMethodInfo
ResolveClassGroupMethod "setProperty" o = GObject.Object.ObjectSetPropertyMethodInfo
ResolveClassGroupMethod l o = O.MethodResolutionFailed l o
instance (info ~ ResolveClassGroupMethod t ClassGroup, O.OverloadedMethod info ClassGroup p) => OL.IsLabel t (ClassGroup -> 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 ~ ResolveClassGroupMethod t ClassGroup, O.OverloadedMethod info ClassGroup p, R.HasField t ClassGroup p) => R.HasField t ClassGroup p where
getField = O.overloadedMethod @info
#endif
instance (info ~ ResolveClassGroupMethod t ClassGroup, O.OverloadedMethodInfo info ClassGroup) => OL.IsLabel t (O.MethodProxy info ClassGroup) where
#if MIN_VERSION_base(4,10,0)
fromLabel = O.MethodProxy
#else
fromLabel _ = O.MethodProxy
#endif
#endif
type ClassGroupIconChangedCallback =
IO ()
type C_ClassGroupIconChangedCallback =
Ptr ClassGroup ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_ClassGroupIconChangedCallback :: C_ClassGroupIconChangedCallback -> IO (FunPtr C_ClassGroupIconChangedCallback)
wrap_ClassGroupIconChangedCallback ::
GObject a => (a -> ClassGroupIconChangedCallback) ->
C_ClassGroupIconChangedCallback
wrap_ClassGroupIconChangedCallback :: forall a.
GObject a =>
(a -> IO ()) -> C_ClassGroupIconChangedCallback
wrap_ClassGroupIconChangedCallback a -> IO ()
gi'cb Ptr ClassGroup
gi'selfPtr Ptr ()
_ = do
Ptr ClassGroup -> (ClassGroup -> IO ()) -> IO ()
forall a b.
(HasCallStack, ManagedPtrNewtype a) =>
Ptr a -> (a -> IO b) -> IO b
B.ManagedPtr.withTransient Ptr ClassGroup
gi'selfPtr ((ClassGroup -> IO ()) -> IO ()) -> (ClassGroup -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \ClassGroup
gi'self -> a -> IO ()
gi'cb (ClassGroup -> a
forall a b. Coercible a b => a -> b
Coerce.coerce ClassGroup
gi'self)
onClassGroupIconChanged :: (IsClassGroup a, MonadIO m) => a -> ((?self :: a) => ClassGroupIconChangedCallback) -> m SignalHandlerId
onClassGroupIconChanged :: forall a (m :: * -> *).
(IsClassGroup a, MonadIO m) =>
a -> ((?self::a) => IO ()) -> m SignalHandlerId
onClassGroupIconChanged a
obj (?self::a) => IO ()
cb = IO SignalHandlerId -> m SignalHandlerId
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO SignalHandlerId -> m SignalHandlerId)
-> IO SignalHandlerId -> m SignalHandlerId
forall a b. (a -> b) -> a -> b
$ do
let wrapped :: a -> IO ()
wrapped a
self = let ?self = a
?self::a
self in IO ()
(?self::a) => IO ()
cb
let wrapped' :: C_ClassGroupIconChangedCallback
wrapped' = (a -> IO ()) -> C_ClassGroupIconChangedCallback
forall a.
GObject a =>
(a -> IO ()) -> C_ClassGroupIconChangedCallback
wrap_ClassGroupIconChangedCallback a -> IO ()
wrapped
FunPtr C_ClassGroupIconChangedCallback
wrapped'' <- C_ClassGroupIconChangedCallback
-> IO (FunPtr C_ClassGroupIconChangedCallback)
mk_ClassGroupIconChangedCallback C_ClassGroupIconChangedCallback
wrapped'
a
-> Text
-> FunPtr C_ClassGroupIconChangedCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"icon-changed" FunPtr C_ClassGroupIconChangedCallback
wrapped'' SignalConnectMode
SignalConnectBefore Maybe Text
forall a. Maybe a
Nothing
afterClassGroupIconChanged :: (IsClassGroup a, MonadIO m) => a -> ((?self :: a) => ClassGroupIconChangedCallback) -> m SignalHandlerId
afterClassGroupIconChanged :: forall a (m :: * -> *).
(IsClassGroup a, MonadIO m) =>
a -> ((?self::a) => IO ()) -> m SignalHandlerId
afterClassGroupIconChanged a
obj (?self::a) => IO ()
cb = IO SignalHandlerId -> m SignalHandlerId
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO SignalHandlerId -> m SignalHandlerId)
-> IO SignalHandlerId -> m SignalHandlerId
forall a b. (a -> b) -> a -> b
$ do
let wrapped :: a -> IO ()
wrapped a
self = let ?self = a
?self::a
self in IO ()
(?self::a) => IO ()
cb
let wrapped' :: C_ClassGroupIconChangedCallback
wrapped' = (a -> IO ()) -> C_ClassGroupIconChangedCallback
forall a.
GObject a =>
(a -> IO ()) -> C_ClassGroupIconChangedCallback
wrap_ClassGroupIconChangedCallback a -> IO ()
wrapped
FunPtr C_ClassGroupIconChangedCallback
wrapped'' <- C_ClassGroupIconChangedCallback
-> IO (FunPtr C_ClassGroupIconChangedCallback)
mk_ClassGroupIconChangedCallback C_ClassGroupIconChangedCallback
wrapped'
a
-> Text
-> FunPtr C_ClassGroupIconChangedCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"icon-changed" FunPtr C_ClassGroupIconChangedCallback
wrapped'' SignalConnectMode
SignalConnectAfter Maybe Text
forall a. Maybe a
Nothing
#if defined(ENABLE_OVERLOADING)
data ClassGroupIconChangedSignalInfo
instance SignalInfo ClassGroupIconChangedSignalInfo where
type HaskellCallbackType ClassGroupIconChangedSignalInfo = ClassGroupIconChangedCallback
connectSignal obj cb connectMode detail = do
let cb' = wrap_ClassGroupIconChangedCallback cb
cb'' <- mk_ClassGroupIconChangedCallback cb'
connectSignalFunPtr obj "icon-changed" cb'' connectMode detail
dbgSignalInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Wnck.Objects.ClassGroup::icon-changed"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-wnck-3.0.14/docs/GI-Wnck-Objects-ClassGroup.html#g:signal:iconChanged"})
#endif
type ClassGroupNameChangedCallback =
IO ()
type C_ClassGroupNameChangedCallback =
Ptr ClassGroup ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_ClassGroupNameChangedCallback :: C_ClassGroupNameChangedCallback -> IO (FunPtr C_ClassGroupNameChangedCallback)
wrap_ClassGroupNameChangedCallback ::
GObject a => (a -> ClassGroupNameChangedCallback) ->
C_ClassGroupNameChangedCallback
wrap_ClassGroupNameChangedCallback :: forall a.
GObject a =>
(a -> IO ()) -> C_ClassGroupIconChangedCallback
wrap_ClassGroupNameChangedCallback a -> IO ()
gi'cb Ptr ClassGroup
gi'selfPtr Ptr ()
_ = do
Ptr ClassGroup -> (ClassGroup -> IO ()) -> IO ()
forall a b.
(HasCallStack, ManagedPtrNewtype a) =>
Ptr a -> (a -> IO b) -> IO b
B.ManagedPtr.withTransient Ptr ClassGroup
gi'selfPtr ((ClassGroup -> IO ()) -> IO ()) -> (ClassGroup -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \ClassGroup
gi'self -> a -> IO ()
gi'cb (ClassGroup -> a
forall a b. Coercible a b => a -> b
Coerce.coerce ClassGroup
gi'self)
onClassGroupNameChanged :: (IsClassGroup a, MonadIO m) => a -> ((?self :: a) => ClassGroupNameChangedCallback) -> m SignalHandlerId
onClassGroupNameChanged :: forall a (m :: * -> *).
(IsClassGroup a, MonadIO m) =>
a -> ((?self::a) => IO ()) -> m SignalHandlerId
onClassGroupNameChanged a
obj (?self::a) => IO ()
cb = IO SignalHandlerId -> m SignalHandlerId
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO SignalHandlerId -> m SignalHandlerId)
-> IO SignalHandlerId -> m SignalHandlerId
forall a b. (a -> b) -> a -> b
$ do
let wrapped :: a -> IO ()
wrapped a
self = let ?self = a
?self::a
self in IO ()
(?self::a) => IO ()
cb
let wrapped' :: C_ClassGroupIconChangedCallback
wrapped' = (a -> IO ()) -> C_ClassGroupIconChangedCallback
forall a.
GObject a =>
(a -> IO ()) -> C_ClassGroupIconChangedCallback
wrap_ClassGroupNameChangedCallback a -> IO ()
wrapped
FunPtr C_ClassGroupIconChangedCallback
wrapped'' <- C_ClassGroupIconChangedCallback
-> IO (FunPtr C_ClassGroupIconChangedCallback)
mk_ClassGroupNameChangedCallback C_ClassGroupIconChangedCallback
wrapped'
a
-> Text
-> FunPtr C_ClassGroupIconChangedCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"name-changed" FunPtr C_ClassGroupIconChangedCallback
wrapped'' SignalConnectMode
SignalConnectBefore Maybe Text
forall a. Maybe a
Nothing
afterClassGroupNameChanged :: (IsClassGroup a, MonadIO m) => a -> ((?self :: a) => ClassGroupNameChangedCallback) -> m SignalHandlerId
afterClassGroupNameChanged :: forall a (m :: * -> *).
(IsClassGroup a, MonadIO m) =>
a -> ((?self::a) => IO ()) -> m SignalHandlerId
afterClassGroupNameChanged a
obj (?self::a) => IO ()
cb = IO SignalHandlerId -> m SignalHandlerId
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO SignalHandlerId -> m SignalHandlerId)
-> IO SignalHandlerId -> m SignalHandlerId
forall a b. (a -> b) -> a -> b
$ do
let wrapped :: a -> IO ()
wrapped a
self = let ?self = a
?self::a
self in IO ()
(?self::a) => IO ()
cb
let wrapped' :: C_ClassGroupIconChangedCallback
wrapped' = (a -> IO ()) -> C_ClassGroupIconChangedCallback
forall a.
GObject a =>
(a -> IO ()) -> C_ClassGroupIconChangedCallback
wrap_ClassGroupNameChangedCallback a -> IO ()
wrapped
FunPtr C_ClassGroupIconChangedCallback
wrapped'' <- C_ClassGroupIconChangedCallback
-> IO (FunPtr C_ClassGroupIconChangedCallback)
mk_ClassGroupNameChangedCallback C_ClassGroupIconChangedCallback
wrapped'
a
-> Text
-> FunPtr C_ClassGroupIconChangedCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"name-changed" FunPtr C_ClassGroupIconChangedCallback
wrapped'' SignalConnectMode
SignalConnectAfter Maybe Text
forall a. Maybe a
Nothing
#if defined(ENABLE_OVERLOADING)
data ClassGroupNameChangedSignalInfo
instance SignalInfo ClassGroupNameChangedSignalInfo where
type HaskellCallbackType ClassGroupNameChangedSignalInfo = ClassGroupNameChangedCallback
connectSignal obj cb connectMode detail = do
let cb' = wrap_ClassGroupNameChangedCallback cb
cb'' <- mk_ClassGroupNameChangedCallback cb'
connectSignalFunPtr obj "name-changed" cb'' connectMode detail
dbgSignalInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Wnck.Objects.ClassGroup::name-changed"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-wnck-3.0.14/docs/GI-Wnck-Objects-ClassGroup.html#g:signal:nameChanged"})
#endif
#if defined(ENABLE_OVERLOADING)
instance O.HasAttributeList ClassGroup
type instance O.AttributeList ClassGroup = ClassGroupAttributeList
type ClassGroupAttributeList = ('[ ] :: [(Symbol, DK.Type)])
#endif
#if defined(ENABLE_OVERLOADING)
#endif
#if defined(ENABLE_OVERLOADING)
type instance O.SignalList ClassGroup = ClassGroupSignalList
type ClassGroupSignalList = ('[ '("iconChanged", ClassGroupIconChangedSignalInfo), '("nameChanged", ClassGroupNameChangedSignalInfo), '("notify", GObject.Object.ObjectNotifySignalInfo)] :: [(Symbol, DK.Type)])
#endif
foreign import ccall "wnck_class_group_get_icon" wnck_class_group_get_icon ::
Ptr ClassGroup ->
IO (Ptr GdkPixbuf.Pixbuf.Pixbuf)
{-# DEPRECATED classGroupGetIcon ["(Since version 41.0)","Use 'GI.Wnck.Objects.ClassGroup.classGroupGetIconSurface' instead."] #-}
classGroupGetIcon ::
(B.CallStack.HasCallStack, MonadIO m, IsClassGroup a) =>
a
-> m GdkPixbuf.Pixbuf.Pixbuf
classGroupGetIcon :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsClassGroup a) =>
a -> m Pixbuf
classGroupGetIcon a
classGroup = IO Pixbuf -> m Pixbuf
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Pixbuf -> m Pixbuf) -> IO Pixbuf -> m Pixbuf
forall a b. (a -> b) -> a -> b
$ do
Ptr ClassGroup
classGroup' <- a -> IO (Ptr ClassGroup)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
classGroup
Ptr Pixbuf
result <- Ptr ClassGroup -> IO (Ptr Pixbuf)
wnck_class_group_get_icon Ptr ClassGroup
classGroup'
Text -> Ptr Pixbuf -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"classGroupGetIcon" Ptr Pixbuf
result
Pixbuf
result' <- ((ManagedPtr Pixbuf -> Pixbuf) -> Ptr Pixbuf -> IO Pixbuf
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
newObject ManagedPtr Pixbuf -> Pixbuf
GdkPixbuf.Pixbuf.Pixbuf) Ptr Pixbuf
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
classGroup
Pixbuf -> IO Pixbuf
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Pixbuf
result'
#if defined(ENABLE_OVERLOADING)
data ClassGroupGetIconMethodInfo
instance (signature ~ (m GdkPixbuf.Pixbuf.Pixbuf), MonadIO m, IsClassGroup a) => O.OverloadedMethod ClassGroupGetIconMethodInfo a signature where
overloadedMethod = classGroupGetIcon
instance O.OverloadedMethodInfo ClassGroupGetIconMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Wnck.Objects.ClassGroup.classGroupGetIcon",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-wnck-3.0.14/docs/GI-Wnck-Objects-ClassGroup.html#v:classGroupGetIcon"
})
#endif
foreign import ccall "wnck_class_group_get_icon_surface" wnck_class_group_get_icon_surface ::
Ptr ClassGroup ->
IO (Ptr Cairo.Surface.Surface)
classGroupGetIconSurface ::
(B.CallStack.HasCallStack, MonadIO m, IsClassGroup a) =>
a
-> m Cairo.Surface.Surface
classGroupGetIconSurface :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsClassGroup a) =>
a -> m Surface
classGroupGetIconSurface a
classGroup = IO Surface -> m Surface
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Surface -> m Surface) -> IO Surface -> m Surface
forall a b. (a -> b) -> a -> b
$ do
Ptr ClassGroup
classGroup' <- a -> IO (Ptr ClassGroup)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
classGroup
Ptr Surface
result <- Ptr ClassGroup -> IO (Ptr Surface)
wnck_class_group_get_icon_surface Ptr ClassGroup
classGroup'
Text -> Ptr Surface -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"classGroupGetIconSurface" Ptr Surface
result
Surface
result' <- ((ManagedPtr Surface -> Surface) -> Ptr Surface -> IO Surface
forall a.
(HasCallStack, GBoxed a) =>
(ManagedPtr a -> a) -> Ptr a -> IO a
wrapBoxed ManagedPtr Surface -> Surface
Cairo.Surface.Surface) Ptr Surface
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
classGroup
Surface -> IO Surface
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Surface
result'
#if defined(ENABLE_OVERLOADING)
data ClassGroupGetIconSurfaceMethodInfo
instance (signature ~ (m Cairo.Surface.Surface), MonadIO m, IsClassGroup a) => O.OverloadedMethod ClassGroupGetIconSurfaceMethodInfo a signature where
overloadedMethod = classGroupGetIconSurface
instance O.OverloadedMethodInfo ClassGroupGetIconSurfaceMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Wnck.Objects.ClassGroup.classGroupGetIconSurface",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-wnck-3.0.14/docs/GI-Wnck-Objects-ClassGroup.html#v:classGroupGetIconSurface"
})
#endif
foreign import ccall "wnck_class_group_get_id" wnck_class_group_get_id ::
Ptr ClassGroup ->
IO CString
classGroupGetId ::
(B.CallStack.HasCallStack, MonadIO m, IsClassGroup a) =>
a
-> m T.Text
classGroupGetId :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsClassGroup a) =>
a -> m Text
classGroupGetId a
classGroup = IO Text -> m Text
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Text -> m Text) -> IO Text -> m Text
forall a b. (a -> b) -> a -> b
$ do
Ptr ClassGroup
classGroup' <- a -> IO (Ptr ClassGroup)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
classGroup
CString
result <- Ptr ClassGroup -> IO CString
wnck_class_group_get_id Ptr ClassGroup
classGroup'
Text -> CString -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"classGroupGetId" CString
result
Text
result' <- HasCallStack => CString -> IO Text
CString -> IO Text
cstringToText CString
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
classGroup
Text -> IO Text
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Text
result'
#if defined(ENABLE_OVERLOADING)
data ClassGroupGetIdMethodInfo
instance (signature ~ (m T.Text), MonadIO m, IsClassGroup a) => O.OverloadedMethod ClassGroupGetIdMethodInfo a signature where
overloadedMethod = classGroupGetId
instance O.OverloadedMethodInfo ClassGroupGetIdMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Wnck.Objects.ClassGroup.classGroupGetId",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-wnck-3.0.14/docs/GI-Wnck-Objects-ClassGroup.html#v:classGroupGetId"
})
#endif
foreign import ccall "wnck_class_group_get_mini_icon" wnck_class_group_get_mini_icon ::
Ptr ClassGroup ->
IO (Ptr GdkPixbuf.Pixbuf.Pixbuf)
{-# DEPRECATED classGroupGetMiniIcon ["(Since version 41.0)","Use 'GI.Wnck.Objects.ClassGroup.classGroupGetMiniIconSurface' instead."] #-}
classGroupGetMiniIcon ::
(B.CallStack.HasCallStack, MonadIO m, IsClassGroup a) =>
a
-> m GdkPixbuf.Pixbuf.Pixbuf
classGroupGetMiniIcon :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsClassGroup a) =>
a -> m Pixbuf
classGroupGetMiniIcon a
classGroup = IO Pixbuf -> m Pixbuf
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Pixbuf -> m Pixbuf) -> IO Pixbuf -> m Pixbuf
forall a b. (a -> b) -> a -> b
$ do
Ptr ClassGroup
classGroup' <- a -> IO (Ptr ClassGroup)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
classGroup
Ptr Pixbuf
result <- Ptr ClassGroup -> IO (Ptr Pixbuf)
wnck_class_group_get_mini_icon Ptr ClassGroup
classGroup'
Text -> Ptr Pixbuf -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"classGroupGetMiniIcon" Ptr Pixbuf
result
Pixbuf
result' <- ((ManagedPtr Pixbuf -> Pixbuf) -> Ptr Pixbuf -> IO Pixbuf
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
newObject ManagedPtr Pixbuf -> Pixbuf
GdkPixbuf.Pixbuf.Pixbuf) Ptr Pixbuf
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
classGroup
Pixbuf -> IO Pixbuf
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Pixbuf
result'
#if defined(ENABLE_OVERLOADING)
data ClassGroupGetMiniIconMethodInfo
instance (signature ~ (m GdkPixbuf.Pixbuf.Pixbuf), MonadIO m, IsClassGroup a) => O.OverloadedMethod ClassGroupGetMiniIconMethodInfo a signature where
overloadedMethod = classGroupGetMiniIcon
instance O.OverloadedMethodInfo ClassGroupGetMiniIconMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Wnck.Objects.ClassGroup.classGroupGetMiniIcon",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-wnck-3.0.14/docs/GI-Wnck-Objects-ClassGroup.html#v:classGroupGetMiniIcon"
})
#endif
foreign import ccall "wnck_class_group_get_mini_icon_surface" wnck_class_group_get_mini_icon_surface ::
Ptr ClassGroup ->
IO (Ptr Cairo.Surface.Surface)
classGroupGetMiniIconSurface ::
(B.CallStack.HasCallStack, MonadIO m, IsClassGroup a) =>
a
-> m Cairo.Surface.Surface
classGroupGetMiniIconSurface :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsClassGroup a) =>
a -> m Surface
classGroupGetMiniIconSurface a
classGroup = IO Surface -> m Surface
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Surface -> m Surface) -> IO Surface -> m Surface
forall a b. (a -> b) -> a -> b
$ do
Ptr ClassGroup
classGroup' <- a -> IO (Ptr ClassGroup)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
classGroup
Ptr Surface
result <- Ptr ClassGroup -> IO (Ptr Surface)
wnck_class_group_get_mini_icon_surface Ptr ClassGroup
classGroup'
Text -> Ptr Surface -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"classGroupGetMiniIconSurface" Ptr Surface
result
Surface
result' <- ((ManagedPtr Surface -> Surface) -> Ptr Surface -> IO Surface
forall a.
(HasCallStack, GBoxed a) =>
(ManagedPtr a -> a) -> Ptr a -> IO a
wrapBoxed ManagedPtr Surface -> Surface
Cairo.Surface.Surface) Ptr Surface
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
classGroup
Surface -> IO Surface
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Surface
result'
#if defined(ENABLE_OVERLOADING)
data ClassGroupGetMiniIconSurfaceMethodInfo
instance (signature ~ (m Cairo.Surface.Surface), MonadIO m, IsClassGroup a) => O.OverloadedMethod ClassGroupGetMiniIconSurfaceMethodInfo a signature where
overloadedMethod = classGroupGetMiniIconSurface
instance O.OverloadedMethodInfo ClassGroupGetMiniIconSurfaceMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Wnck.Objects.ClassGroup.classGroupGetMiniIconSurface",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-wnck-3.0.14/docs/GI-Wnck-Objects-ClassGroup.html#v:classGroupGetMiniIconSurface"
})
#endif
foreign import ccall "wnck_class_group_get_name" wnck_class_group_get_name ::
Ptr ClassGroup ->
IO CString
classGroupGetName ::
(B.CallStack.HasCallStack, MonadIO m, IsClassGroup a) =>
a
-> m T.Text
classGroupGetName :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsClassGroup a) =>
a -> m Text
classGroupGetName a
classGroup = IO Text -> m Text
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Text -> m Text) -> IO Text -> m Text
forall a b. (a -> b) -> a -> b
$ do
Ptr ClassGroup
classGroup' <- a -> IO (Ptr ClassGroup)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
classGroup
CString
result <- Ptr ClassGroup -> IO CString
wnck_class_group_get_name Ptr ClassGroup
classGroup'
Text -> CString -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"classGroupGetName" CString
result
Text
result' <- HasCallStack => CString -> IO Text
CString -> IO Text
cstringToText CString
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
classGroup
Text -> IO Text
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Text
result'
#if defined(ENABLE_OVERLOADING)
data ClassGroupGetNameMethodInfo
instance (signature ~ (m T.Text), MonadIO m, IsClassGroup a) => O.OverloadedMethod ClassGroupGetNameMethodInfo a signature where
overloadedMethod = classGroupGetName
instance O.OverloadedMethodInfo ClassGroupGetNameMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Wnck.Objects.ClassGroup.classGroupGetName",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-wnck-3.0.14/docs/GI-Wnck-Objects-ClassGroup.html#v:classGroupGetName"
})
#endif
foreign import ccall "wnck_class_group_get_res_class" wnck_class_group_get_res_class ::
Ptr ClassGroup ->
IO CString
{-# DEPRECATED classGroupGetResClass ["(Since version 3.2)","Use 'GI.Wnck.Objects.ClassGroup.classGroupGetId' instead."] #-}
classGroupGetResClass ::
(B.CallStack.HasCallStack, MonadIO m, IsClassGroup a) =>
a
-> m T.Text
classGroupGetResClass :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsClassGroup a) =>
a -> m Text
classGroupGetResClass a
classGroup = IO Text -> m Text
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Text -> m Text) -> IO Text -> m Text
forall a b. (a -> b) -> a -> b
$ do
Ptr ClassGroup
classGroup' <- a -> IO (Ptr ClassGroup)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
classGroup
CString
result <- Ptr ClassGroup -> IO CString
wnck_class_group_get_res_class Ptr ClassGroup
classGroup'
Text -> CString -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"classGroupGetResClass" CString
result
Text
result' <- HasCallStack => CString -> IO Text
CString -> IO Text
cstringToText CString
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
classGroup
Text -> IO Text
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Text
result'
#if defined(ENABLE_OVERLOADING)
data ClassGroupGetResClassMethodInfo
instance (signature ~ (m T.Text), MonadIO m, IsClassGroup a) => O.OverloadedMethod ClassGroupGetResClassMethodInfo a signature where
overloadedMethod = classGroupGetResClass
instance O.OverloadedMethodInfo ClassGroupGetResClassMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Wnck.Objects.ClassGroup.classGroupGetResClass",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-wnck-3.0.14/docs/GI-Wnck-Objects-ClassGroup.html#v:classGroupGetResClass"
})
#endif
foreign import ccall "wnck_class_group_get_windows" wnck_class_group_get_windows ::
Ptr ClassGroup ->
IO (Ptr (GList (Ptr Wnck.Window.Window)))
classGroupGetWindows ::
(B.CallStack.HasCallStack, MonadIO m, IsClassGroup a) =>
a
-> m [Wnck.Window.Window]
classGroupGetWindows :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsClassGroup a) =>
a -> m [Window]
classGroupGetWindows a
classGroup = IO [Window] -> m [Window]
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO [Window] -> m [Window]) -> IO [Window] -> m [Window]
forall a b. (a -> b) -> a -> b
$ do
Ptr ClassGroup
classGroup' <- a -> IO (Ptr ClassGroup)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
classGroup
Ptr (GList (Ptr Window))
result <- Ptr ClassGroup -> IO (Ptr (GList (Ptr Window)))
wnck_class_group_get_windows Ptr ClassGroup
classGroup'
[Ptr Window]
result' <- Ptr (GList (Ptr Window)) -> IO [Ptr Window]
forall a. Ptr (GList (Ptr a)) -> IO [Ptr a]
unpackGList Ptr (GList (Ptr Window))
result
[Window]
result'' <- (Ptr Window -> IO Window) -> [Ptr Window] -> IO [Window]
forall (t :: * -> *) (m :: * -> *) a b.
(Traversable t, Monad m) =>
(a -> m b) -> t a -> m (t b)
forall (m :: * -> *) a b. Monad m => (a -> m b) -> [a] -> m [b]
mapM ((ManagedPtr Window -> Window) -> Ptr Window -> IO Window
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
newObject ManagedPtr Window -> Window
Wnck.Window.Window) [Ptr Window]
result'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
classGroup
[Window] -> IO [Window]
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return [Window]
result''
#if defined(ENABLE_OVERLOADING)
data ClassGroupGetWindowsMethodInfo
instance (signature ~ (m [Wnck.Window.Window]), MonadIO m, IsClassGroup a) => O.OverloadedMethod ClassGroupGetWindowsMethodInfo a signature where
overloadedMethod = classGroupGetWindows
instance O.OverloadedMethodInfo ClassGroupGetWindowsMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Wnck.Objects.ClassGroup.classGroupGetWindows",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-wnck-3.0.14/docs/GI-Wnck-Objects-ClassGroup.html#v:classGroupGetWindows"
})
#endif
foreign import ccall "wnck_class_group_get" wnck_class_group_get ::
CString ->
IO (Ptr ClassGroup)
classGroupGet ::
(B.CallStack.HasCallStack, MonadIO m) =>
T.Text
-> m ClassGroup
classGroupGet :: forall (m :: * -> *).
(HasCallStack, MonadIO m) =>
Text -> m ClassGroup
classGroupGet Text
id = IO ClassGroup -> m ClassGroup
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO ClassGroup -> m ClassGroup) -> IO ClassGroup -> m ClassGroup
forall a b. (a -> b) -> a -> b
$ do
CString
id' <- Text -> IO CString
textToCString Text
id
Ptr ClassGroup
result <- CString -> IO (Ptr ClassGroup)
wnck_class_group_get CString
id'
Text -> Ptr ClassGroup -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"classGroupGet" Ptr ClassGroup
result
ClassGroup
result' <- ((ManagedPtr ClassGroup -> ClassGroup)
-> Ptr ClassGroup -> IO ClassGroup
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
newObject ManagedPtr ClassGroup -> ClassGroup
ClassGroup) Ptr ClassGroup
result
CString -> IO ()
forall a. Ptr a -> IO ()
freeMem CString
id'
ClassGroup -> IO ClassGroup
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ClassGroup
result'
#if defined(ENABLE_OVERLOADING)
#endif