GEmblemedIcon

GEmblemedIcon — Icon with emblems

Synopsis


#include <gio/gio.h>

                    GEmblemedIcon;
GIcon*              g_emblemed_icon_new                 (GIcon *icon,
                                                         GIcon *emblem);
GIcon*              g_emblemed_icon_get_icon            (GEmblemedIcon *icon);
GIcon*              g_emblemed_icon_get_emblem          (GEmblemedIcon *icon);

Description

GEmblemedIcon is an implementation of GIcon that supports adding an emblem to an icon. To add multiple emblems to an icon, you can create nested GemblemedIcons.

Note that GEmblemedIcon allows no control over the position of the emblems. It is up to the rendering code to pick a position.

Details

GEmblemedIcon

typedef struct _GEmblemedIcon GEmblemedIcon;

An implementation of GIcon for icons with emblems.


g_emblemed_icon_new ()

GIcon*              g_emblemed_icon_new                 (GIcon *icon,
                                                         GIcon *emblem);

Creates a new emblemed icon for icon with emblem emblem.

icon :

a GIcon.

emblem :

a GIcon

Returns :

a new GEmblemedIcon.

Since 2.18


g_emblemed_icon_get_icon ()

GIcon*              g_emblemed_icon_get_icon            (GEmblemedIcon *icon);

Gets the main icon for icon.

icon :

a GEmblemedIcon.

Returns :

a GIcon that is owend by icon

Since 2.18


g_emblemed_icon_get_emblem ()

GIcon*              g_emblemed_icon_get_emblem          (GEmblemedIcon *icon);

Gets the emblem for icon.

icon :

a GEmblemedIcon.

Returns :

a GIcon that is owned by icon

Since 2.18

See Also

GIcon, GLoadableIcon, GThemedIcon