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 |
Emblem
is an implementation of Icon
that supports
having an emblem, which is an icon with additional properties.
It can than be added to a EmblemedIcon
.
Currently, only metainformation about the emblem's origin is supported. More may be added in the future.
Synopsis
- newtype Emblem = Emblem (ManagedPtr Emblem)
- class (GObject o, IsDescendantOf Emblem o) => IsEmblem o
- toEmblem :: (MonadIO m, IsEmblem o) => o -> m Emblem
- noEmblem :: Maybe Emblem
- emblemGetIcon :: (HasCallStack, MonadIO m, IsEmblem a) => a -> m Icon
- emblemGetOrigin :: (HasCallStack, MonadIO m, IsEmblem a) => a -> m EmblemOrigin
- emblemNew :: (HasCallStack, MonadIO m, IsIcon a) => a -> m Emblem
- emblemNewWithOrigin :: (HasCallStack, MonadIO m, IsIcon a) => a -> EmblemOrigin -> m Emblem
- constructEmblemIcon :: (IsEmblem o, IsObject a) => a -> IO (GValueConstruct o)
- getEmblemIcon :: (MonadIO m, IsEmblem o) => o -> m (Maybe Object)
- constructEmblemOrigin :: IsEmblem o => EmblemOrigin -> IO (GValueConstruct o)
- getEmblemOrigin :: (MonadIO m, IsEmblem o) => o -> m EmblemOrigin
Exported types
Memory-managed wrapper type.
Instances
Eq Emblem Source # | |
GObject Emblem Source # | |
Defined in GI.Gio.Objects.Emblem gobjectType :: IO GType # | |
IsGValue Emblem Source # | Convert |
HasParentTypes Emblem Source # | |
Defined in GI.Gio.Objects.Emblem | |
type ParentTypes Emblem Source # | |
Defined in GI.Gio.Objects.Emblem |
class (GObject o, IsDescendantOf Emblem o) => IsEmblem o Source #
Instances
(GObject o, IsDescendantOf Emblem o) => IsEmblem o Source # | |
Defined in GI.Gio.Objects.Emblem |
Methods
Overloaded methods
getIcon
:: (HasCallStack, MonadIO m, IsEmblem a) | |
=> a |
|
-> m Icon | Returns: a |
Gives back the icon from emblem
.
Since: 2.18
getOrigin
:: (HasCallStack, MonadIO m, IsEmblem a) | |
=> a |
|
-> m EmblemOrigin | Returns: the origin of the emblem |
Gets the origin of the emblem.
Since: 2.18
new
:: (HasCallStack, MonadIO m, IsIcon a) | |
=> a |
|
-> m Emblem | Returns: a new |
Creates a new emblem for icon
.
Since: 2.18
newWithOrigin
:: (HasCallStack, MonadIO m, IsIcon a) | |
=> a |
|
-> EmblemOrigin |
|
-> m Emblem | Returns: a new |
Creates a new emblem for icon
.
Since: 2.18
Properties
icon
No description available in the introspection data.
constructEmblemIcon :: (IsEmblem o, IsObject a) => a -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “icon
” property. This is rarely needed directly, but it is used by new
.
getEmblemIcon :: (MonadIO m, IsEmblem o) => o -> m (Maybe Object) Source #
Get the value of the “icon
” property.
When overloading is enabled, this is equivalent to
get
emblem #icon
origin
No description available in the introspection data.
constructEmblemOrigin :: IsEmblem o => EmblemOrigin -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “origin
” property. This is rarely needed directly, but it is used by new
.
getEmblemOrigin :: (MonadIO m, IsEmblem o) => o -> m EmblemOrigin Source #
Get the value of the “origin
” property.
When overloading is enabled, this is equivalent to
get
emblem #origin