GEmblem
GEmblem — An object for emblems
|
|
Object Hierarchy
GEnum
╰── GEmblemOrigin
GObject
╰── GEmblem
Implemented Interfaces
GEmblem implements
GIcon.
Includes
#include <gio/gio.h>
Description
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.
Functions
g_emblem_new ()
GEmblem *
g_emblem_new (GIcon *icon);
Creates a new emblem for icon
.
Since: 2.18
g_emblem_get_icon ()
GIcon *
g_emblem_get_icon (GEmblem *emblem);
Gives back the icon from emblem
.
Returns
a GIcon. The returned object belongs to
the emblem and should not be modified or freed.
[transfer none]
Since: 2.18
g_emblem_get_origin ()
GEmblemOrigin
g_emblem_get_origin (GEmblem *emblem);
Gets the origin of the emblem.
Returns
the origin of the emblem.
[transfer none]
Since: 2.18
Types and Values
GEmblem
typedef struct _GEmblem GEmblem;
An object for Emblems
enum GEmblemOrigin
GEmblemOrigin is used to add information about the origin of the emblem
to GEmblem.
Since: 2.18
Property Details
The “icon” property
“icon” GObject *
The actual icon of the emblem.
Owner: GEmblem
Flags: Read / Write / Construct Only
The “origin” property
“origin” GEmblemOrigin
Tells which origin the emblem is derived from.
Owner: GEmblem
Flags: Read / Write / Construct Only
Default value: G_EMBLEM_ORIGIN_UNKNOWN