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 |
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.
- newtype Emblem = Emblem (ManagedPtr Emblem)
- class GObject o => IsEmblem o
- toEmblem :: IsEmblem o => o -> IO Emblem
- noEmblem :: Maybe Emblem
- data EmblemGetIconMethodInfo
- emblemGetIcon :: (HasCallStack, MonadIO m, IsEmblem a) => a -> m Icon
- data EmblemGetOriginMethodInfo
- 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
- data EmblemIconPropertyInfo
- constructEmblemIcon :: (IsEmblem o, IsObject a) => a -> IO (GValueConstruct o)
- emblemIcon :: AttrLabelProxy "icon"
- getEmblemIcon :: (MonadIO m, IsEmblem o) => o -> m (Maybe Object)
- data EmblemOriginPropertyInfo
- constructEmblemOrigin :: IsEmblem o => EmblemOrigin -> IO (GValueConstruct o)
- emblemOrigin :: AttrLabelProxy "origin"
- getEmblemOrigin :: (MonadIO m, IsEmblem o) => o -> m EmblemOrigin
Exported types
GObject Emblem Source # | |
IsObject Emblem Source # | |
IsEmblem Emblem Source # | |
IsIcon Emblem Source # | |
((~) * info (ResolveEmblemMethod t Emblem), MethodInfo * info Emblem p) => IsLabel t (Emblem -> p) Source # | |
((~) * info (ResolveEmblemMethod t Emblem), MethodInfo * info Emblem p) => IsLabelProxy t (Emblem -> p) Source # | |
HasAttributeList * Emblem Source # | |
type AttributeList Emblem Source # | |
type SignalList Emblem Source # | |
Methods
getIcon
data EmblemGetIconMethodInfo Source #
((~) * signature (m Icon), MonadIO m, IsEmblem a) => MethodInfo * EmblemGetIconMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsEmblem a) | |
=> a |
|
-> m Icon | Returns: a |
Gives back the icon from emblem
.
Since: 2.18
getOrigin
data EmblemGetOriginMethodInfo Source #
((~) * signature (m EmblemOrigin), MonadIO m, IsEmblem a) => MethodInfo * EmblemGetOriginMethodInfo a signature Source # | |
:: (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
data EmblemIconPropertyInfo Source #
constructEmblemIcon :: (IsEmblem o, IsObject a) => a -> IO (GValueConstruct o) Source #
emblemIcon :: AttrLabelProxy "icon" Source #
origin
data EmblemOriginPropertyInfo Source #
constructEmblemOrigin :: IsEmblem o => EmblemOrigin -> IO (GValueConstruct o) Source #
emblemOrigin :: AttrLabelProxy "origin" Source #
getEmblemOrigin :: (MonadIO m, IsEmblem o) => o -> m EmblemOrigin Source #