gi-gio-2.0.14: Gio bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.Gio.Objects.Emblem

Contents

Description

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

Exported types

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

Methods

getIcon

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

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

origin