Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
GI.Gio.Objects.EmblemedIcon
Description
GEmblemedIcon
is an implementation of Icon
that supports
adding an emblem to an icon. Adding multiple emblems to an
icon is ensured via emblemedIconAddEmblem
.
Note that GEmblemedIcon
allows no control over the position
of the emblems. See also Emblem
for more information.
Synopsis
- newtype EmblemedIcon = EmblemedIcon (ManagedPtr EmblemedIcon)
- class (GObject o, IsDescendantOf EmblemedIcon o) => IsEmblemedIcon o
- toEmblemedIcon :: (MonadIO m, IsEmblemedIcon o) => o -> m EmblemedIcon
- type family ResolveEmblemedIconMethod (t :: Symbol) o where ...
- data EmblemedIconAddEmblemMethodInfo
- emblemedIconAddEmblem :: (HasCallStack, MonadIO m, IsEmblemedIcon a, IsEmblem b) => a -> b -> m ()
- data EmblemedIconClearEmblemsMethodInfo
- emblemedIconClearEmblems :: (HasCallStack, MonadIO m, IsEmblemedIcon a) => a -> m ()
- data EmblemedIconGetEmblemsMethodInfo
- emblemedIconGetEmblems :: (HasCallStack, MonadIO m, IsEmblemedIcon a) => a -> m [Emblem]
- data EmblemedIconGetIconMethodInfo
- emblemedIconGetIcon :: (HasCallStack, MonadIO m, IsEmblemedIcon a) => a -> m Icon
- emblemedIconNew :: (HasCallStack, MonadIO m, IsIcon a, IsEmblem b) => a -> Maybe b -> m EmblemedIcon
- data EmblemedIconGiconPropertyInfo
- constructEmblemedIconGicon :: (IsEmblemedIcon o, MonadIO m, IsIcon a) => a -> m (GValueConstruct o)
- emblemedIconGicon :: AttrLabelProxy "gicon"
- getEmblemedIconGicon :: (MonadIO m, IsEmblemedIcon o) => o -> m (Maybe Icon)
Exported types
newtype EmblemedIcon Source #
Memory-managed wrapper type.
Constructors
EmblemedIcon (ManagedPtr EmblemedIcon) |
Instances
class (GObject o, IsDescendantOf EmblemedIcon o) => IsEmblemedIcon o Source #
Type class for types which can be safely cast to EmblemedIcon
, for instance with toEmblemedIcon
.
Instances
(GObject o, IsDescendantOf EmblemedIcon o) => IsEmblemedIcon o Source # | |
Defined in GI.Gio.Objects.EmblemedIcon |
toEmblemedIcon :: (MonadIO m, IsEmblemedIcon o) => o -> m EmblemedIcon Source #
Cast to EmblemedIcon
, 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
addEmblem, bindProperty, bindPropertyFull, clearEmblems, equal, forceFloating, freezeNotify, getv, hash, isFloating, notify, notifyByPspec, ref, refSink, runDispose, serialize, stealData, stealQdata, thawNotify, toString, unref, watchClosure.
Getters
getData, getEmblems, getIcon, getProperty, getQdata.
Setters
type family ResolveEmblemedIconMethod (t :: Symbol) o where ... Source #
Equations
addEmblem
data EmblemedIconAddEmblemMethodInfo Source #
Instances
(signature ~ (b -> m ()), MonadIO m, IsEmblemedIcon a, IsEmblem b) => OverloadedMethod EmblemedIconAddEmblemMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.EmblemedIcon Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo EmblemedIconAddEmblemMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.EmblemedIcon Methods |
emblemedIconAddEmblem Source #
Arguments
:: (HasCallStack, MonadIO m, IsEmblemedIcon a, IsEmblem b) | |
=> a |
|
-> b |
|
-> m () |
Adds emblem
to the List
of GEmblems
.
Since: 2.18
clearEmblems
data EmblemedIconClearEmblemsMethodInfo Source #
Instances
(signature ~ m (), MonadIO m, IsEmblemedIcon a) => OverloadedMethod EmblemedIconClearEmblemsMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.EmblemedIcon Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo EmblemedIconClearEmblemsMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.EmblemedIcon Methods |
emblemedIconClearEmblems Source #
Arguments
:: (HasCallStack, MonadIO m, IsEmblemedIcon a) | |
=> a |
|
-> m () |
Removes all the emblems from icon
.
Since: 2.28
getEmblems
data EmblemedIconGetEmblemsMethodInfo Source #
Instances
(signature ~ m [Emblem], MonadIO m, IsEmblemedIcon a) => OverloadedMethod EmblemedIconGetEmblemsMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.EmblemedIcon Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo EmblemedIconGetEmblemsMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.EmblemedIcon Methods |
emblemedIconGetEmblems Source #
Arguments
:: (HasCallStack, MonadIO m, IsEmblemedIcon a) | |
=> a |
|
-> m [Emblem] | Returns: a |
Gets the list of emblems for the icon
.
Since: 2.18
getIcon
data EmblemedIconGetIconMethodInfo Source #
Instances
(signature ~ m Icon, MonadIO m, IsEmblemedIcon a) => OverloadedMethod EmblemedIconGetIconMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.EmblemedIcon Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo EmblemedIconGetIconMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.EmblemedIcon Methods |
Arguments
:: (HasCallStack, MonadIO m, IsEmblemedIcon a) | |
=> a |
|
-> m Icon | Returns: a |
Gets the main icon for emblemed
.
Since: 2.18
new
Arguments
:: (HasCallStack, MonadIO m, IsIcon a, IsEmblem b) | |
=> a |
|
-> Maybe b | |
-> m EmblemedIcon | Returns: a new |
Creates a new emblemed icon for icon
with the emblem emblem
.
Since: 2.18
Properties
gicon
The Icon
to attach emblems to.
Since: 2.18
data EmblemedIconGiconPropertyInfo Source #
Instances
constructEmblemedIconGicon :: (IsEmblemedIcon o, MonadIO m, IsIcon a) => a -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “gicon
” property. This is rarely needed directly, but it is used by new
.
emblemedIconGicon :: AttrLabelProxy "gicon" Source #
getEmblemedIconGicon :: (MonadIO m, IsEmblemedIcon o) => o -> m (Maybe Icon) Source #
Get the value of the “gicon
” property.
When overloading is enabled, this is equivalent to
get
emblemedIcon #gicon