MxIcon

MxIcon — a simple styled icon actor

Synopsis

                    MxIcon;
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.


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