MxIcon

MxIcon — a simple styled icon actor

Functions

Properties

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

Types and Values

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── ClutterActor
            ╰── MxWidget
                ╰── MxIcon

Implemented Interfaces

MxIcon implements ClutterContainer, ClutterScriptable, ClutterAnimatable, AtkImplementorIface and MxStylable.

Description

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

Functions

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);

Types and Values

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;

Property Details

The “icon-name” property

  “icon-name”                gchar *

An icon name.

Flags: Read / Write

Default value: NULL


The “icon-size” property

  “icon-size”                gint

Size of the icon.

Flags: Read / Write

Allowed values: >= 1

Default value: 48