![]() |
![]() |
![]() |
GIO Reference Manual | ![]() |
---|---|---|---|---|
#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);
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.
typedef struct _GEmblemedIcon GEmblemedIcon;
An implementation of GIcon for icons with emblems.
GIcon* g_emblemed_icon_new (GIcon *icon, GIcon *emblem);
Creates a new emblemed icon for icon
with emblem emblem
.
|
a GIcon. |
|
a GIcon |
Returns : |
a new GEmblemedIcon. |
Since 2.18
GIcon* g_emblemed_icon_get_icon (GEmblemedIcon *icon);
Gets the main icon for icon
.
|
a GEmblemedIcon. |
Returns : |
a GIcon that is owend by icon
|
Since 2.18
GIcon* g_emblemed_icon_get_emblem (GEmblemedIcon *icon);
Gets the emblem for icon
.
|
a GEmblemedIcon. |
Returns : |
a GIcon that is owned by icon
|
Since 2.18