Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
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 ClassGroupIconChangedCallback = IO ()
- afterClassGroupIconChanged :: (IsClassGroup a, MonadIO m) => a -> ((?self :: a) => ClassGroupIconChangedCallback) -> m SignalHandlerId
- onClassGroupIconChanged :: (IsClassGroup a, MonadIO m) => a -> ((?self :: a) => ClassGroupIconChangedCallback) -> m SignalHandlerId
- type ClassGroupNameChangedCallback = IO ()
- afterClassGroupNameChanged :: (IsClassGroup a, MonadIO m) => a -> ((?self :: a) => ClassGroupNameChangedCallback) -> m SignalHandlerId
- onClassGroupNameChanged :: (IsClassGroup a, MonadIO m) => a -> ((?self :: a) => ClassGroupNameChangedCallback) -> m SignalHandlerId
Exported types
newtype ClassGroup Source #
Memory-managed wrapper type.
ClassGroup (ManagedPtr ClassGroup) |
Instances
Eq ClassGroup Source # | |
Defined in GI.Wnck.Objects.ClassGroup (==) :: ClassGroup -> ClassGroup -> Bool # (/=) :: ClassGroup -> ClassGroup -> Bool # | |
GObject ClassGroup Source # | |
Defined in GI.Wnck.Objects.ClassGroup | |
ManagedPtrNewtype ClassGroup Source # | |
Defined in GI.Wnck.Objects.ClassGroup toManagedPtr :: ClassGroup -> ManagedPtr ClassGroup | |
TypedObject ClassGroup Source # | |
Defined in GI.Wnck.Objects.ClassGroup | |
HasParentTypes ClassGroup Source # | |
Defined in GI.Wnck.Objects.ClassGroup | |
IsGValue (Maybe ClassGroup) Source # | Convert |
Defined in GI.Wnck.Objects.ClassGroup gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe ClassGroup -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe ClassGroup) | |
type ParentTypes ClassGroup Source # | |
Defined in GI.Wnck.Objects.ClassGroup type ParentTypes ClassGroup = '[Object] |
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
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, forceFloating, freezeNotify, getv, isFloating, notify, notifyByPspec, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getData, getIcon, getId, getMiniIcon, getName, getProperty, getQdata, getResClass, getWindows.
Setters
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 ClassGroupIconChangedCallback = IO () Source #
Emitted when the icon of classGroup
changes.
afterClassGroupIconChanged :: (IsClassGroup a, MonadIO m) => a -> ((?self :: 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
By default the object invoking the signal is not passed to the callback.
If you need to access it, you can use the implit ?self
parameter.
Note that this requires activating the ImplicitParams
GHC extension.
onClassGroupIconChanged :: (IsClassGroup a, MonadIO m) => a -> ((?self :: 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
nameChanged
type ClassGroupNameChangedCallback = IO () Source #
Emitted when the name of classGroup
changes.
afterClassGroupNameChanged :: (IsClassGroup a, MonadIO m) => a -> ((?self :: 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
By default the object invoking the signal is not passed to the callback.
If you need to access it, you can use the implit ?self
parameter.
Note that this requires activating the ImplicitParams
GHC extension.
onClassGroupNameChanged :: (IsClassGroup a, MonadIO m) => a -> ((?self :: 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