gi-gio
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

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

Exported types

newtype Emblem Source #

Memory-managed wrapper type.

Constructors

Emblem (ManagedPtr Emblem) 

Instances

Instances details
Eq Emblem Source # 
Instance details

Defined in GI.Gio.Objects.Emblem

Methods

(==) :: Emblem -> Emblem -> Bool #

(/=) :: Emblem -> Emblem -> Bool #

GObject Emblem Source # 
Instance details

Defined in GI.Gio.Objects.Emblem

ManagedPtrNewtype Emblem Source # 
Instance details

Defined in GI.Gio.Objects.Emblem

TypedObject Emblem Source # 
Instance details

Defined in GI.Gio.Objects.Emblem

Methods

glibType :: IO GType #

HasParentTypes Emblem Source # 
Instance details

Defined in GI.Gio.Objects.Emblem

HasAttributeList Emblem Source # 
Instance details

Defined in GI.Gio.Objects.Emblem

(info ~ ResolveEmblemMethod t Emblem, OverloadedMethod info Emblem p, HasField t Emblem p) => HasField (t :: Symbol) Emblem (p :: Type) Source # 
Instance details

Defined in GI.Gio.Objects.Emblem

Methods

getField :: Emblem -> p #

(info ~ ResolveEmblemMethod t Emblem, OverloadedMethodInfo info Emblem) => IsLabel t (MethodProxy info Emblem) Source # 
Instance details

Defined in GI.Gio.Objects.Emblem

Methods

fromLabel :: MethodProxy info Emblem #

(info ~ ResolveEmblemMethod t Emblem, OverloadedMethod info Emblem p) => IsLabel t (Emblem -> p) Source # 
Instance details

Defined in GI.Gio.Objects.Emblem

Methods

fromLabel :: Emblem -> p #

IsGValue (Maybe Emblem) Source #

Convert Emblem to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.Gio.Objects.Emblem

type AttributeList Emblem Source # 
Instance details

Defined in GI.Gio.Objects.Emblem

type ParentTypes Emblem Source # 
Instance details

Defined in GI.Gio.Objects.Emblem

type SignalList Emblem Source # 
Instance details

Defined in GI.Gio.Objects.Emblem

class (GObject o, IsDescendantOf Emblem o) => IsEmblem o Source #

Type class for types which can be safely cast to Emblem, for instance with toEmblem.

Instances

Instances details
(GObject o, IsDescendantOf Emblem o) => IsEmblem o Source # 
Instance details

Defined in GI.Gio.Objects.Emblem

toEmblem :: (MonadIO m, IsEmblem o) => o -> m Emblem Source #

Cast to Emblem, for types for which this is known to be safe. For general casts, use castTo.

Methods

type family ResolveEmblemMethod (t :: Symbol) o where ... Source #

Equations

ResolveEmblemMethod "bindProperty" o = ObjectBindPropertyMethodInfo 
ResolveEmblemMethod "bindPropertyFull" o = ObjectBindPropertyFullMethodInfo 
ResolveEmblemMethod "equal" o = IconEqualMethodInfo 
ResolveEmblemMethod "forceFloating" o = ObjectForceFloatingMethodInfo 
ResolveEmblemMethod "freezeNotify" o = ObjectFreezeNotifyMethodInfo 
ResolveEmblemMethod "getv" o = ObjectGetvMethodInfo 
ResolveEmblemMethod "hash" o = IconHashMethodInfo 
ResolveEmblemMethod "isFloating" o = ObjectIsFloatingMethodInfo 
ResolveEmblemMethod "notify" o = ObjectNotifyMethodInfo 
ResolveEmblemMethod "notifyByPspec" o = ObjectNotifyByPspecMethodInfo 
ResolveEmblemMethod "ref" o = ObjectRefMethodInfo 
ResolveEmblemMethod "refSink" o = ObjectRefSinkMethodInfo 
ResolveEmblemMethod "runDispose" o = ObjectRunDisposeMethodInfo 
ResolveEmblemMethod "serialize" o = IconSerializeMethodInfo 
ResolveEmblemMethod "stealData" o = ObjectStealDataMethodInfo 
ResolveEmblemMethod "stealQdata" o = ObjectStealQdataMethodInfo 
ResolveEmblemMethod "thawNotify" o = ObjectThawNotifyMethodInfo 
ResolveEmblemMethod "toString" o = IconToStringMethodInfo 
ResolveEmblemMethod "unref" o = ObjectUnrefMethodInfo 
ResolveEmblemMethod "watchClosure" o = ObjectWatchClosureMethodInfo 
ResolveEmblemMethod "getData" o = ObjectGetDataMethodInfo 
ResolveEmblemMethod "getIcon" o = EmblemGetIconMethodInfo 
ResolveEmblemMethod "getOrigin" o = EmblemGetOriginMethodInfo 
ResolveEmblemMethod "getProperty" o = ObjectGetPropertyMethodInfo 
ResolveEmblemMethod "getQdata" o = ObjectGetQdataMethodInfo 
ResolveEmblemMethod "setData" o = ObjectSetDataMethodInfo 
ResolveEmblemMethod "setDataFull" o = ObjectSetDataFullMethodInfo 
ResolveEmblemMethod "setProperty" o = ObjectSetPropertyMethodInfo 
ResolveEmblemMethod l o = MethodResolutionFailed l o :: Type 

getIcon

data EmblemGetIconMethodInfo Source #

Instances

Instances details
(signature ~ m Icon, MonadIO m, IsEmblem a) => OverloadedMethod EmblemGetIconMethodInfo a signature Source # 
Instance details

Defined in GI.Gio.Objects.Emblem

Methods

overloadedMethod :: a -> signature #

OverloadedMethodInfo EmblemGetIconMethodInfo (a :: Type) Source # 
Instance details

Defined in GI.Gio.Objects.Emblem

emblemGetIcon Source #

Arguments

:: (HasCallStack, MonadIO m, IsEmblem a) 
=> a

emblem: a Emblem from which the icon should be extracted.

-> m Icon

Returns: a Icon. The returned object belongs to the emblem and should not be modified or freed.

Gives back the icon from emblem.

Since: 2.18

getOrigin

data EmblemGetOriginMethodInfo Source #

Instances

Instances details
(signature ~ m EmblemOrigin, MonadIO m, IsEmblem a) => OverloadedMethod EmblemGetOriginMethodInfo a signature Source # 
Instance details

Defined in GI.Gio.Objects.Emblem

Methods

overloadedMethod :: a -> signature #

OverloadedMethodInfo EmblemGetOriginMethodInfo (a :: Type) Source # 
Instance details

Defined in GI.Gio.Objects.Emblem

emblemGetOrigin Source #

Arguments

:: (HasCallStack, MonadIO m, IsEmblem a) 
=> a

emblem: a Emblem

-> m EmblemOrigin

Returns: the origin of the emblem

Gets the origin of the emblem.

Since: 2.18

new

emblemNew Source #

Arguments

:: (HasCallStack, MonadIO m, IsIcon a) 
=> a

icon: a GIcon containing the icon.

-> m Emblem

Returns: a new Emblem.

Creates a new emblem for icon.

Since: 2.18

newWithOrigin

emblemNewWithOrigin Source #

Arguments

:: (HasCallStack, MonadIO m, IsIcon a) 
=> a

icon: a GIcon containing the icon.

-> EmblemOrigin

origin: a GEmblemOrigin enum defining the emblem's origin

-> m Emblem

Returns: a new Emblem.

Creates a new emblem for icon.

Since: 2.18

Properties

icon

The actual icon of the emblem.

Since: 2.18

data EmblemIconPropertyInfo Source #

Instances

Instances details
AttrInfo EmblemIconPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.Emblem

type AttrAllowedOps EmblemIconPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.Emblem

type AttrBaseTypeConstraint EmblemIconPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.Emblem

type AttrGetType EmblemIconPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.Emblem

type AttrLabel EmblemIconPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.Emblem

type AttrOrigin EmblemIconPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.Emblem

type AttrSetTypeConstraint EmblemIconPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.Emblem

type AttrTransferType EmblemIconPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.Emblem

type AttrTransferTypeConstraint EmblemIconPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.Emblem

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

data EmblemOriginPropertyInfo Source #

Instances

Instances details
AttrInfo EmblemOriginPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.Emblem

type AttrAllowedOps EmblemOriginPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.Emblem

type AttrBaseTypeConstraint EmblemOriginPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.Emblem

type AttrGetType EmblemOriginPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.Emblem

type AttrLabel EmblemOriginPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.Emblem

type AttrOrigin EmblemOriginPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.Emblem

type AttrSetTypeConstraint EmblemOriginPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.Emblem

type AttrTransferType EmblemOriginPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.Emblem

type AttrTransferTypeConstraint EmblemOriginPropertyInfo Source # 
Instance details

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.

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