## MxIcon MxIcon — a simple styled icon actor |

## Synopsis

                        MxIcon;
                        MxIconClass;
    ClutterActor *      mx_icon_new                         (void);
    const gchar *       mx_icon_get_icon_name               (MxIcon *icon);
    void                mx_icon_set_icon_name               (MxIcon *icon,
                                                             const gchar *icon_name);
    gint                mx_icon_get_icon_size               (MxIcon *icon);
    void                mx_icon_set_icon_size               (MxIcon *icon,
                                                             gint size);

## Object Hierarchy

      GObject
       +----GInitiallyUnowned
             +----ClutterActor
                   +----MxWidget
                         +----MxIcon

## Implemented Interfaces

MxIcon implements ClutterScriptable, ClutterAnimatable, AtkImplementorIface and MxStylable.

## Properties

      "icon-name"                gchar*                : Read / Write
      "icon-size"                gint                  : Read / Write

## Description

MxIcon is a simple styled texture actor that displays an image from a stylesheet.

## Details

### MxIcon

    typedef struct _MxIcon MxIcon;

The contents of this structure are private and should only be accessed through the public API.

### MxIconClass

    typedef struct {
      MxWidgetClass parent_class;

      /* padding for future expansion */
      void (*_padding_0) (void);
      void (*_padding_1) (void);
      void (*_padding_2) (void);
      void (*_padding_3) (void);
      void (*_padding_4) (void);
    } MxIconClass;

### mx_icon_new ()

    ClutterActor *      mx_icon_new                         (void);

Create a newly allocated MxIcon

Returns : | A newly allocated MxIcon

### mx_icon_get_icon_name ()

    const gchar *       mx_icon_get_icon_name               (MxIcon *icon);

### mx_icon_set_icon_name ()

    void                mx_icon_set_icon_name               (MxIcon *icon,
                                                             const gchar *icon_name);

### mx_icon_get_icon_size ()

    gint                mx_icon_get_icon_size               (MxIcon *icon);

### mx_icon_set_icon_size ()

    void                mx_icon_set_icon_size               (MxIcon *icon,
                                                             gint size);

## Property Details

### The `"icon-name"` property

      "icon-name"                gchar*                : Read / Write

An icon name.

Default value: NULL

### The `"icon-size"` property

      "icon-size"                gint                  : Read / Write

Size of the icon.

Allowed values: >= 1

Default value: 48