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
- type family ResolveEmblemMethod (t :: Symbol) o where ...
- 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, MonadIO m, IsObject a) => a -> m (GValueConstruct o)
- emblemIcon :: AttrLabelProxy "icon"
- getEmblemIcon :: (MonadIO m, IsEmblem o) => o -> m (Maybe Object)
- data EmblemOriginPropertyInfo
- constructEmblemOrigin :: (IsEmblem o, MonadIO m) => EmblemOrigin -> m (GValueConstruct o)
- emblemOrigin :: AttrLabelProxy "origin"
- getEmblemOrigin :: (MonadIO m, IsEmblem o) => o -> m EmblemOrigin
Exported types
Memory-managed wrapper type.
Constructors
Emblem (ManagedPtr Emblem) |
Instances
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
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
type family ResolveEmblemMethod (t :: Symbol) o where ... Source #
Equations
getIcon
data EmblemGetIconMethodInfo Source #
Instances
(signature ~ m Icon, MonadIO m, IsEmblem a) => OverloadedMethod EmblemGetIconMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.Emblem Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo EmblemGetIconMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.Emblem Methods |
Arguments
:: (HasCallStack, MonadIO m, IsEmblem a) | |
=> a |
|
-> m Icon | Returns: a |
Gives back the icon from emblem
.
Since: 2.18
getOrigin
data EmblemGetOriginMethodInfo Source #
Instances
(signature ~ m EmblemOrigin, MonadIO m, IsEmblem a) => OverloadedMethod EmblemGetOriginMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.Emblem Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo EmblemGetOriginMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.Emblem Methods |
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
data EmblemIconPropertyInfo Source #
Instances
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
.
emblemIcon :: AttrLabelProxy "icon" Source #
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
data EmblemOriginPropertyInfo Source #
Instances
AttrInfo EmblemOriginPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.Emblem Associated Types
Methods attrGet :: AttrBaseTypeConstraint EmblemOriginPropertyInfo o => o -> IO (AttrGetType EmblemOriginPropertyInfo) # attrSet :: (AttrBaseTypeConstraint EmblemOriginPropertyInfo o, AttrSetTypeConstraint EmblemOriginPropertyInfo b) => o -> b -> IO () # attrClear :: AttrBaseTypeConstraint EmblemOriginPropertyInfo o => o -> IO () # attrConstruct :: (AttrBaseTypeConstraint EmblemOriginPropertyInfo o, AttrSetTypeConstraint EmblemOriginPropertyInfo b) => b -> IO (GValueConstruct o) # attrTransfer :: (AttrBaseTypeConstraint EmblemOriginPropertyInfo o, AttrTransferTypeConstraint EmblemOriginPropertyInfo b) => Proxy o -> b -> IO (AttrTransferType EmblemOriginPropertyInfo) # | |||||||||||||||||||||||||||||||||
type AttrAllowedOps EmblemOriginPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.Emblem | |||||||||||||||||||||||||||||||||
type AttrBaseTypeConstraint EmblemOriginPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.Emblem | |||||||||||||||||||||||||||||||||
type AttrGetType EmblemOriginPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.Emblem | |||||||||||||||||||||||||||||||||
type AttrLabel EmblemOriginPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.Emblem | |||||||||||||||||||||||||||||||||
type AttrOrigin EmblemOriginPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.Emblem | |||||||||||||||||||||||||||||||||
type AttrSetTypeConstraint EmblemOriginPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.Emblem | |||||||||||||||||||||||||||||||||
type AttrTransferType EmblemOriginPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.Emblem | |||||||||||||||||||||||||||||||||
type AttrTransferTypeConstraint EmblemOriginPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.Emblem |
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
.
emblemOrigin :: AttrLabelProxy "origin" Source #
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