|  |  |  | St Reference Manual |  | 
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Implemented Interfaces | Properties | ||||
StIcon; StIconClass; ClutterActor * st_icon_new (void); const gchar * st_icon_get_icon_name (StIcon *icon); void st_icon_set_icon_name (StIcon *icon,const gchar *icon_name); gint st_icon_get_icon_size (StIcon *icon); void st_icon_set_icon_size (StIcon *icon,gint size); void st_icon_set_gicon (StIcon *icon,GIcon *gicon); GIcon * st_icon_get_gicon (StIcon *icon);
StIcon implements ClutterContainer, ClutterScriptable, ClutterAnimatable and AtkImplementorIface.
"gicon" GIcon* : Read / Write "icon-name" gchar* : Read / Write "icon-size" gint : Read / Write
typedef struct _StIcon StIcon;
The contents of this structure are private and should only be accessed through the public API.
typedef struct {
  StWidgetClass 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);
} StIconClass;
ClutterActor *      st_icon_new                         (void);
Create a newly allocated StIcon
| Returns : | A newly allocated StIcon | 
gint                st_icon_get_icon_size               (StIcon *icon);
Gets the size explicit size on the icon. This is not necesariily the size that the icon will actually be displayed at.
| 
 | an icon | 
| Returns : | the size explicitly set, or -1 if no size has been set | 
void st_icon_set_icon_size (StIcon *icon,gint size);
Sets an explicit size for the icon.
| 
 | an icon | 
| 
 | if positive, the new size, otherwise the size will be derived from the current style | 
void st_icon_set_gicon (StIcon *icon,GIcon *gicon);
| 
 | an icon | 
| 
 | a GIcon to override :icon-name. [allow-none] | 
GIcon *             st_icon_get_gicon                   (StIcon *icon);
| 
 | an icon | 
| Returns : | the override GIcon, if set, or NULL. [transfer none] |