| Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.Wnck.Objects.ClassGroup
Contents
Description
The ClassGroup struct contains only private fields and should not be
directly accessed.
Synopsis
- newtype ClassGroup = ClassGroup (ManagedPtr ClassGroup)
- class GObject o => IsClassGroup o
- toClassGroup :: (MonadIO m, IsClassGroup o) => o -> m ClassGroup
- noClassGroup :: Maybe 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 :: ClassGroupIconChangedCallback -> IO Closure
- 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 :: ClassGroupNameChangedCallback -> IO Closure
- 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.
Constructors
| ClassGroup (ManagedPtr ClassGroup) |
Instances
| GObject ClassGroup Source # | |
Defined in GI.Wnck.Objects.ClassGroup Methods gobjectType :: ClassGroup -> IO GType # | |
| IsObject ClassGroup Source # | |
Defined in GI.Wnck.Objects.ClassGroup | |
| IsClassGroup ClassGroup Source # | |
Defined in GI.Wnck.Objects.ClassGroup | |
class GObject o => IsClassGroup o Source #
Type class for types which can be safely cast to ClassGroup, for instance with toClassGroup.
Instances
| (GObject a, (UnknownAncestorError ClassGroup a :: Constraint)) => IsClassGroup a Source # | |
Defined in GI.Wnck.Objects.ClassGroup | |
| IsClassGroup ClassGroup 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.
noClassGroup :: Maybe ClassGroup Source #
A convenience alias for Nothing :: Maybe ClassGroup.
Methods
get
Arguments
| :: (HasCallStack, MonadIO m) | |
| => Text |
|
| -> m ClassGroup | Returns: the |
Gets the ClassGroup corresponding to id.
Since: 2.2
getIcon
Arguments
| :: (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
Arguments
| :: (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 #
Arguments
| :: (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
Arguments
| :: (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 #
Arguments
| :: (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
Arguments
| :: (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 “icon-changed” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after classGroup #iconChanged callback
genClosure_ClassGroupIconChanged :: ClassGroupIconChangedCallback -> IO Closure Source #
Wrap the callback into a Closure.
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 “icon-changed” 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 “name-changed” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after classGroup #nameChanged callback
genClosure_ClassGroupNameChanged :: ClassGroupNameChangedCallback -> IO Closure Source #
Wrap the callback into a Closure.
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 “name-changed” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on classGroup #nameChanged callback