1.29 <GEmblem>

Class: <GEmblem>

It derives from <GObject>.

<GEmblem> is an implementation of <GIcon> that supports having an emblem, which is an icon with additional properties. It can than be added to a <GEmblemedIcon>.

Currently, only metainformation about the emblem’s origin is supported. More may be added in the future.

Properties

Property: emblem:icon self

The actual icon of the emblem.

Its value is a <GObject>, or #f.

It can only be set when the object is made, with #:icon.

Property: emblem:origin self

The origin the emblem is derived from.

Its value is a <GEmblemOrigin> (or, to set it, one of its symbols).

It can only be set when the object is made, with #:origin.

Procedures

Method: emblem:get-icon self ⇒ %return
Method: get-icon self ⇒ %return

Gives back the icon from self.

self

Passed: a <GEmblem>.

a <GEmblem> from which the icon should be extracted.

%return

Returned: a <GIcon>.

a <GIcon>. The returned object belongs to the emblem and should not be modified or freed.

Method: emblem:get-origin self ⇒ %return
Method: get-origin self ⇒ %return

Gets the origin of the emblem.

self

Passed: a <GEmblem>.

a <GEmblem>

%return

Returned: a <GEmblemOrigin>.

the origin of the emblem

Procedure: emblem:new icon ⇒ %return

Creates a new emblem for icon.

icon

Passed: a <GIcon>.

a GIcon containing the icon.

%return

Returned: a <GEmblem>.

a new <GEmblem>.

Procedure: emblem:new-with-origin icon origin ⇒ %return

Creates a new emblem for icon.

icon

Passed: a <GIcon>.

a GIcon containing the icon.

origin

Passed: a <GEmblemOrigin>, or one of its symbols.

a GEmblemOrigin enum defining the emblem’s origin

%return

Returned: a <GEmblem>.

a new <GEmblem>.