Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
The ClassGroup
struct contains only private fields and should not be
directly accessed.
Synopsis
- newtype ClassGroup = ClassGroup (ManagedPtr ClassGroup)
- class (GObject o, IsDescendantOf ClassGroup o) => IsClassGroup o
- toClassGroup :: (MonadIO m, IsClassGroup o) => o -> m ClassGroup
- classGroupGet :: (HasCallStack, MonadIO m) => Text -> m ClassGroup
- classGroupGetIcon :: (HasCallStack, MonadIO m, IsClassGroup a) => a -> m Pixbuf
- classGroupGetId :: (HasCallStack, MonadIO m, IsClassGroup a) => a -> m Text
- classGroupGetMiniIcon :: (HasCallStack, MonadIO m, IsClassGroup a) => a -> m Pixbuf
- classGroupGetName :: (HasCallStack, MonadIO m, IsClassGroup a) => a -> m Text
- classGroupGetResClass :: (HasCallStack, MonadIO m, IsClassGroup a) => a -> m Text
- classGroupGetWindows :: (HasCallStack, MonadIO m, IsClassGroup a) => a -> m [Window]
- type C_ClassGroupIconChangedCallback = Ptr () -> Ptr () -> IO ()
- type ClassGroupIconChangedCallback = IO ()
- afterClassGroupIconChanged :: (IsClassGroup a, MonadIO m) => a -> ClassGroupIconChangedCallback -> m SignalHandlerId
- genClosure_ClassGroupIconChanged :: MonadIO m => ClassGroupIconChangedCallback -> m (GClosure C_ClassGroupIconChangedCallback)
- mk_ClassGroupIconChangedCallback :: C_ClassGroupIconChangedCallback -> IO (FunPtr C_ClassGroupIconChangedCallback)
- noClassGroupIconChangedCallback :: Maybe ClassGroupIconChangedCallback
- onClassGroupIconChanged :: (IsClassGroup a, MonadIO m) => a -> ClassGroupIconChangedCallback -> m SignalHandlerId
- wrap_ClassGroupIconChangedCallback :: ClassGroupIconChangedCallback -> C_ClassGroupIconChangedCallback
- type C_ClassGroupNameChangedCallback = Ptr () -> Ptr () -> IO ()
- type ClassGroupNameChangedCallback = IO ()
- afterClassGroupNameChanged :: (IsClassGroup a, MonadIO m) => a -> ClassGroupNameChangedCallback -> m SignalHandlerId
- genClosure_ClassGroupNameChanged :: MonadIO m => ClassGroupNameChangedCallback -> m (GClosure C_ClassGroupNameChangedCallback)
- mk_ClassGroupNameChangedCallback :: C_ClassGroupNameChangedCallback -> IO (FunPtr C_ClassGroupNameChangedCallback)
- noClassGroupNameChangedCallback :: Maybe ClassGroupNameChangedCallback
- onClassGroupNameChanged :: (IsClassGroup a, MonadIO m) => a -> ClassGroupNameChangedCallback -> m SignalHandlerId
- wrap_ClassGroupNameChangedCallback :: ClassGroupNameChangedCallback -> C_ClassGroupNameChangedCallback
Exported types
newtype ClassGroup Source #
Memory-managed wrapper type.
Instances
Eq ClassGroup Source # | |
Defined in GI.Wnck.Objects.ClassGroup (==) :: ClassGroup -> ClassGroup -> Bool # (/=) :: ClassGroup -> ClassGroup -> Bool # | |
IsGValue ClassGroup Source # | Convert |
Defined in GI.Wnck.Objects.ClassGroup toGValue :: ClassGroup -> IO GValue # fromGValue :: GValue -> IO ClassGroup # | |
ManagedPtrNewtype ClassGroup Source # | |
Defined in GI.Wnck.Objects.ClassGroup | |
TypedObject ClassGroup Source # | |
Defined in GI.Wnck.Objects.ClassGroup | |
GObject ClassGroup Source # | |
Defined in GI.Wnck.Objects.ClassGroup | |
HasParentTypes ClassGroup Source # | |
Defined in GI.Wnck.Objects.ClassGroup | |
type ParentTypes ClassGroup Source # | |
Defined in GI.Wnck.Objects.ClassGroup |
class (GObject o, IsDescendantOf ClassGroup o) => IsClassGroup o Source #
Type class for types which can be safely cast to ClassGroup
, for instance with toClassGroup
.
Instances
(GObject o, IsDescendantOf ClassGroup o) => IsClassGroup o Source # | |
Defined in GI.Wnck.Objects.ClassGroup |
toClassGroup :: (MonadIO m, IsClassGroup o) => o -> m ClassGroup Source #
Cast to ClassGroup
, for types for which this is known to be safe. For general casts, use castTo
.
Methods
Overloaded methods
get
:: (HasCallStack, MonadIO m) | |
=> Text |
|
-> m ClassGroup | Returns: the |
Gets the ClassGroup
corresponding to id
.
Since: 2.2
getIcon
:: (HasCallStack, MonadIO m, IsClassGroup a) | |
=> a |
|
-> m Pixbuf | Returns: the icon for |
Gets the icon to be used for classGroup
. Since there is no way to
properly find the icon, a suboptimal heuristic is used to find it. The icon
is the first icon found by looking at all the Application
for each
Window
in classGroup
, then at all the Window
in classGroup
. If
no icon was found, a fallback icon is used.
Since: 2.2
getId
:: (HasCallStack, MonadIO m, IsClassGroup a) | |
=> a |
|
-> m Text | Returns: the identifier name of |
Gets the identifier name for classGroup
. This is the resource class for
classGroup
.
Since: 3.2
getMiniIcon
classGroupGetMiniIcon Source #
:: (HasCallStack, MonadIO m, IsClassGroup a) | |
=> a |
|
-> m Pixbuf | Returns: the mini-icon for |
Gets the mini-icon to be used for classGroup
. Since there is no way to
properly find the mini-icon, the same suboptimal heuristic as the one for
classGroupGetIcon
is used to find it.
Since: 2.2
getName
:: (HasCallStack, MonadIO m, IsClassGroup a) | |
=> a |
|
-> m Text | Returns: an human-readable name for |
Gets an human-readable name for classGroup
. Since there is no way to
properly find this name, a suboptimal heuristic is used to find it. The name
is the name of all Application
for each Window
in classGroup
if
they all have the same name. If all Application
don't have the same
name, the name is the name of all Window
in classGroup
if they all
have the same name. If all Window
don't have the same name, the
resource class name is used.
Since: 2.2
getResClass
classGroupGetResClass Source #
:: (HasCallStack, MonadIO m, IsClassGroup a) | |
=> a |
|
-> m Text | Returns: the resource class name of |
Deprecated: (Since version 3.2)Use classGroupGetId
instead.
Gets the resource class name for classGroup
.
Since: 2.2
getWindows
:: (HasCallStack, MonadIO m, IsClassGroup a) | |
=> a |
|
-> m [Window] | Returns: the list of
|
Gets the list of Window
that are grouped in classGroup
.
Since: 2.2
Signals
iconChanged
type C_ClassGroupIconChangedCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type ClassGroupIconChangedCallback = IO () Source #
Emitted when the icon of classGroup
changes.
afterClassGroupIconChanged :: (IsClassGroup a, MonadIO m) => a -> ClassGroupIconChangedCallback -> m SignalHandlerId Source #
Connect a signal handler for the iconChanged signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
classGroup #iconChanged callback
genClosure_ClassGroupIconChanged :: MonadIO m => ClassGroupIconChangedCallback -> m (GClosure C_ClassGroupIconChangedCallback) Source #
Wrap the callback into a GClosure
.
mk_ClassGroupIconChangedCallback :: C_ClassGroupIconChangedCallback -> IO (FunPtr C_ClassGroupIconChangedCallback) Source #
Generate a function pointer callable from C code, from a C_ClassGroupIconChangedCallback
.
noClassGroupIconChangedCallback :: Maybe ClassGroupIconChangedCallback Source #
A convenience synonym for
.Nothing
:: Maybe
ClassGroupIconChangedCallback
onClassGroupIconChanged :: (IsClassGroup a, MonadIO m) => a -> ClassGroupIconChangedCallback -> m SignalHandlerId Source #
Connect a signal handler for the iconChanged signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
classGroup #iconChanged callback
wrap_ClassGroupIconChangedCallback :: ClassGroupIconChangedCallback -> C_ClassGroupIconChangedCallback Source #
Wrap a ClassGroupIconChangedCallback
into a C_ClassGroupIconChangedCallback
.
nameChanged
type C_ClassGroupNameChangedCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type ClassGroupNameChangedCallback = IO () Source #
Emitted when the name of classGroup
changes.
afterClassGroupNameChanged :: (IsClassGroup a, MonadIO m) => a -> ClassGroupNameChangedCallback -> m SignalHandlerId Source #
Connect a signal handler for the nameChanged signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
classGroup #nameChanged callback
genClosure_ClassGroupNameChanged :: MonadIO m => ClassGroupNameChangedCallback -> m (GClosure C_ClassGroupNameChangedCallback) Source #
Wrap the callback into a GClosure
.
mk_ClassGroupNameChangedCallback :: C_ClassGroupNameChangedCallback -> IO (FunPtr C_ClassGroupNameChangedCallback) Source #
Generate a function pointer callable from C code, from a C_ClassGroupNameChangedCallback
.
noClassGroupNameChangedCallback :: Maybe ClassGroupNameChangedCallback Source #
A convenience synonym for
.Nothing
:: Maybe
ClassGroupNameChangedCallback
onClassGroupNameChanged :: (IsClassGroup a, MonadIO m) => a -> ClassGroupNameChangedCallback -> m SignalHandlerId Source #
Connect a signal handler for the nameChanged signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
classGroup #nameChanged callback