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.Emblem
Description
GEmblem
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
- 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, MonadIO m, IsObject a) => a -> m (GValueConstruct o)
- getEmblemIcon :: (MonadIO m, IsEmblem o) => o -> m (Maybe Object)
- constructEmblemOrigin :: (IsEmblem o, MonadIO m) => EmblemOrigin -> m (GValueConstruct o)
- getEmblemOrigin :: (MonadIO m, IsEmblem o) => o -> m EmblemOrigin
Exported types
Memory-managed wrapper type.
Constructors
Emblem (ManagedPtr Emblem) |
Instances
Eq Emblem Source # | |
GObject Emblem Source # | |
Defined in GI.Gio.Objects.Emblem | |
ManagedPtrNewtype Emblem Source # | |
Defined in GI.Gio.Objects.Emblem Methods toManagedPtr :: Emblem -> ManagedPtr Emblem # | |
TypedObject Emblem Source # | |
Defined in GI.Gio.Objects.Emblem | |
HasParentTypes Emblem Source # | |
Defined in GI.Gio.Objects.Emblem | |
IsGValue (Maybe Emblem) Source # | Convert |
Defined in GI.Gio.Objects.Emblem | |
type ParentTypes Emblem Source # | |
Defined in GI.Gio.Objects.Emblem |
Methods
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, equal, forceFloating, freezeNotify, getv, hash, isFloating, notify, notifyByPspec, ref, refSink, runDispose, serialize, stealData, stealQdata, thawNotify, toString, unref, watchClosure.
Getters
getData, getIcon, getOrigin, getProperty, getQdata.
Setters
getIcon
Arguments
:: (HasCallStack, MonadIO m, IsEmblem a) | |
=> a |
|
-> m Icon | Returns: a |
Gives back the icon from emblem
.
Since: 2.18
getOrigin
Arguments
:: (HasCallStack, MonadIO m, IsEmblem a) | |
=> a |
|
-> m EmblemOrigin | Returns: the origin of the emblem |
Gets the origin of the emblem.
Since: 2.18
new
Arguments
:: (HasCallStack, MonadIO m, IsIcon a) | |
=> a |
|
-> m Emblem | Returns: a new |
Creates a new emblem for icon
.
Since: 2.18
newWithOrigin
Arguments
:: (HasCallStack, MonadIO m, IsIcon a) | |
=> a |
|
-> EmblemOrigin |
|
-> m Emblem | Returns: a new |
Creates a new emblem for icon
.
Since: 2.18
Properties
icon
The actual icon of the emblem.
Since: 2.18
constructEmblemIcon :: (IsEmblem o, MonadIO m, IsObject a) => a -> m (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
The origin the emblem is derived from.
Since: 2.18
constructEmblemOrigin :: (IsEmblem o, MonadIO m) => EmblemOrigin -> m (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