GEmblemedIcon

## GEmblemedIcon GEmblemedIcon — Icon with emblems |

## Synopsis

    #include <gio/gio.h>

    struct              GEmblemedIcon;
    GIcon *             g_emblemed_icon_new                 (GIcon *icon,
                                                             GEmblem *emblem);
    GIcon *             g_emblemed_icon_get_icon            (GEmblemedIcon *emblemed);
    GList *             g_emblemed_icon_get_emblems         (GEmblemedIcon *emblemed);
    void                g_emblemed_icon_add_emblem          (GEmblemedIcon *emblemed,
                                                             GEmblem *emblem);
    void                g_emblemed_icon_clear_emblems       (GEmblemedIcon *emblemed);

## Object Hierarchy

      GObject
       +----GEmblemedIcon

## Implemented Interfaces

GEmblemedIcon implements GIcon.

## Properties

      "gicon"                    GIcon*                : Read / Write / Construct Only

## Description

GEmblemedIcon is an implementation of GIcon that supports adding an emblem to an icon. Adding multiple emblems to an icon is ensured via `g_emblemed_icon_add_emblem()`.

Note that GEmblemedIcon allows no control over the position of the emblems. See also GEmblem for more information.

## Details

### struct GEmblemedIcon

    struct GEmblemedIcon;

An implementation of GIcon for icons with emblems.

### g_emblemed_icon_new ()

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

Creates a new emblemed icon for `icon` with the emblem `emblem`.

`icon` : | a GIcon
`emblem` : | a GEmblem, or `NULL`. [allow-none]
Returns : | a new GIcon. [transfer full]

Since 2.18

### g_emblemed_icon_get_icon ()

    GIcon *             g_emblemed_icon_get_icon            (GEmblemedIcon *emblemed);

Gets the main icon for `emblemed`.

`emblemed` : | a GEmblemedIcon
Returns : | a GIcon that is owned by `emblemed`. [transfer none]

Since 2.18

### g_emblemed_icon_get_emblems ()

    GList *             g_emblemed_icon_get_emblems         (GEmblemedIcon *emblemed);

Gets the list of emblems for the `icon`.

`emblemed` : | a GEmblemedIcon
Returns : | a GList of GEmblem s that is owned by `emblemed`. [element-type Gio.Emblem][transfer none]

Since 2.18

### g_emblemed_icon_add_emblem ()

    void                g_emblemed_icon_add_emblem          (GEmblemedIcon *emblemed,
                                                             GEmblem *emblem);

Adds `emblem` to the GList of GEmblem s.

`emblemed` : | a GEmblemedIcon
`emblem` : | a GEmblem

Since 2.18

### g_emblemed_icon_clear_emblems ()

    void                g_emblemed_icon_clear_emblems       (GEmblemedIcon *emblemed);

Removes all the emblems from `icon`.

`emblemed` : | a GEmblemedIcon

Since 2.28

## Property Details

### The `"gicon"` property

      "gicon"                    GIcon*                : Read / Write / Construct Only

The GIcon to attach emblems to.

## See Also

GIcon, GLoadableIcon, GThemedIcon, GEmblem