Top | ![]() |
![]() |
![]() |
![]() |
ClutterActor * | st_icon_new () |
GIcon * | st_icon_get_gicon () |
void | st_icon_set_gicon () |
GIcon * | st_icon_get_fallback_gicon () |
void | st_icon_set_fallback_gicon () |
const gchar * | st_icon_get_icon_name () |
void | st_icon_set_icon_name () |
const gchar * | st_icon_get_fallback_icon_name () |
void | st_icon_set_fallback_icon_name () |
gint | st_icon_get_icon_size () |
void | st_icon_set_icon_size () |
void st_icon_set_gicon (StIcon *icon
,GIcon *gicon
);
Sets a GIcon to show for the icon. If gicon
is NULL
or fails to load,
the fallback icon set using st_icon_set_fallback_icon()
will be shown.
GIcon *
st_icon_get_fallback_gicon (StIcon *icon
);
Gets the currently set fallback GIcon.
void st_icon_set_fallback_gicon (StIcon *icon
,GIcon *fallback_gicon
);
Sets a fallback GIcon to show if the normal icon fails to load.
If fallback_gicon
is NULL
or fails to load, the icon is unset and no
texture will be visible for the fallback icon.
const gchar *
st_icon_get_icon_name (StIcon *icon
);
This is a convenience method to get the icon name of the current icon, if it
is currently a GThemedIcon, or NULL
otherwise.
void st_icon_set_icon_name (StIcon *icon
,const gchar *icon_name
);
This is a convenience method to set the GIcon to a GThemedIcon created
using the given icon name. If icon_name
is an empty string, NULL
or
fails to load, the fallback icon will be shown.
const gchar *
st_icon_get_fallback_icon_name (StIcon *icon
);
This is a convenience method to get the icon name of the fallback GThemedIcon that is currently set.
void st_icon_set_fallback_icon_name (StIcon *icon
,const gchar *fallback_icon_name
);
This is a convenience method to set the fallback GIcon to a GThemedIcon
created using the given icon name. If fallback_icon_name
is an empty
string, NULL
or fails to load, the icon is unset and no texture will
be visible for the fallback icon.
gint
st_icon_get_icon_size (StIcon *icon
);
Gets the explicit size set using st_icon_set_icon_size()
for the icon.
This is not necessarily the size that the icon will be displayed at.
void st_icon_set_icon_size (StIcon *icon
,gint size
);
Sets an explicit size for the icon. Setting size
to -1 will use the size
defined by the current style or the default icon size.
icon |
an StIcon |
|
size |
if positive, the new size, otherwise the size will be derived from the current style |