Top | ![]() |
![]() |
![]() |
![]() |
MxIconTheme * | mx_icon_theme_new () |
MxIconTheme * | mx_icon_theme_get_default () |
const gchar * | mx_icon_theme_get_theme_name () |
void | mx_icon_theme_set_theme_name () |
CoglHandle | mx_icon_theme_lookup () |
ClutterTexture * | mx_icon_theme_lookup_texture () |
gboolean | mx_icon_theme_has_icon () |
const GList * | mx_icon_theme_get_search_paths () |
void | mx_icon_theme_set_search_paths () |
MxIconTheme *
mx_icon_theme_new (void
);
Create a new MxIconTheme. In most cicumstances, it is more useful to use mx_icon_theme_get_default to load the default icon theme.
MxIconTheme *
mx_icon_theme_get_default (void
);
Return the default MxIconTheme object used by the toolkit.
const gchar *
mx_icon_theme_get_theme_name (MxIconTheme *theme
);
Get the value of the “theme-name” property.
void mx_icon_theme_set_theme_name (MxIconTheme *theme
,const gchar *theme_name
);
Set the value of the “theme-name” property. This will cause the icon theme to be loaded if it differs from the existing theme name. If the theme could not be loaded, it will fall back to using the default icon theme (hicolor).
This will override the system's theme setting. To revert to the system
icon theme, this function can be called with a NULL
theme_name
argument.
CoglHandle mx_icon_theme_lookup (MxIconTheme *theme
,const gchar *icon_name
,gint size
);
If the icon is available, returns a CoglHandle of the icon.
ClutterTexture * mx_icon_theme_lookup_texture (MxIconTheme *theme
,const gchar *icon_name
,gint size
);
If the icon is available, returns a ClutterTexture of the icon.
gboolean mx_icon_theme_has_icon (MxIconTheme *theme
,const gchar *icon_name
);
const GList *
mx_icon_theme_get_search_paths (MxIconTheme *theme
);
Gets the directories the MxIconTheme will search in to find icons.
void mx_icon_theme_set_search_paths (MxIconTheme *theme
,const GList *paths
);
Sets the directories the MxIconTheme will search in to find icons. By default, it will look in the default system and local icon directories.