| 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.Gio.Objects.EmblemedIcon
Description
EmblemedIcon 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 EmblemedIcon allows no control over the position
of the emblems. See also Emblem for more information.
- newtype EmblemedIcon = EmblemedIcon (ManagedPtr EmblemedIcon)
- class GObject o => IsEmblemedIcon o
- toEmblemedIcon :: (MonadIO m, IsEmblemedIcon o) => o -> m EmblemedIcon
- noEmblemedIcon :: Maybe EmblemedIcon
- emblemedIconAddEmblem :: (HasCallStack, MonadIO m, IsEmblemedIcon a, IsEmblem b) => a -> b -> m ()
- emblemedIconClearEmblems :: (HasCallStack, MonadIO m, IsEmblemedIcon a) => a -> m ()
- emblemedIconGetEmblems :: (HasCallStack, MonadIO m, IsEmblemedIcon a) => a -> m [Emblem]
- emblemedIconGetIcon :: (HasCallStack, MonadIO m, IsEmblemedIcon a) => a -> m Icon
- emblemedIconNew :: (HasCallStack, MonadIO m, IsIcon a, IsEmblem b) => a -> Maybe b -> m EmblemedIcon
- constructEmblemedIconGicon :: (IsEmblemedIcon o, IsIcon a) => a -> IO (GValueConstruct o)
- getEmblemedIconGicon :: (MonadIO m, IsEmblemedIcon o) => o -> m (Maybe Icon)
Exported types
newtype EmblemedIcon Source #
Constructors
| EmblemedIcon (ManagedPtr EmblemedIcon) |
class GObject o => IsEmblemedIcon o Source #
Instances
toEmblemedIcon :: (MonadIO m, IsEmblemedIcon o) => o -> m EmblemedIcon Source #
Methods
addEmblem
emblemedIconAddEmblem Source #
Arguments
| :: (HasCallStack, MonadIO m, IsEmblemedIcon a, IsEmblem b) | |
| => a |
|
| -> b |
|
| -> m () |
Adds emblem to the List of GEmblems.
Since: 2.18
clearEmblems
emblemedIconClearEmblems Source #
Arguments
| :: (HasCallStack, MonadIO m, IsEmblemedIcon a) | |
| => a |
|
| -> m () |
Removes all the emblems from icon.
Since: 2.28
getEmblems
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
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
constructEmblemedIconGicon :: (IsEmblemedIcon o, IsIcon a) => a -> IO (GValueConstruct o) Source #
getEmblemedIconGicon :: (MonadIO m, IsEmblemedIcon o) => o -> m (Maybe Icon) Source #