![]() |
![]() |
![]() |
Mx Toolkit Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
struct MxIconTheme; struct MxIconThemeClass; MxIconTheme * mx_icon_theme_new (void
); MxIconTheme * mx_icon_theme_get_default (void
); const gchar * mx_icon_theme_get_theme_name (MxIconTheme *theme
); void mx_icon_theme_set_theme_name (MxIconTheme *theme
,const gchar *theme_name
); CoglHandle mx_icon_theme_lookup (MxIconTheme *theme
,const gchar *icon_name
,gint size
); ClutterTexture * mx_icon_theme_lookup_texture (MxIconTheme *theme
,const gchar *icon_name
,gint size
); gboolean mx_icon_theme_has_icon (MxIconTheme *theme
,const gchar *icon_name
); const GList * mx_icon_theme_get_search_paths (MxIconTheme *theme
); void mx_icon_theme_set_search_paths (MxIconTheme *theme
,const GList *paths
);
struct MxIconTheme;
The contents of this structure are private and should only be accessed through the public API.
struct MxIconThemeClass { GObjectClass 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); };
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.
Returns : |
a newly allocated MxIconTheme. |
MxIconTheme * mx_icon_theme_get_default (void
);
Return the default MxIconTheme object used by the toolkit.
Returns : |
an MxIconTheme. [transfer none] |
const gchar * mx_icon_theme_get_theme_name (MxIconTheme *theme
);
Get the value of the "theme-name" property.
|
A MxIconTheme |
Returns : |
the current 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.
|
A MxIconTheme |
|
the name of an icon theme to load, or NULL
|
CoglHandle mx_icon_theme_lookup (MxIconTheme *theme
,const gchar *icon_name
,gint size
);
If the icon is available, returns a CoglHandle of the icon.
|
an MxIconTheme |
|
The name of the icon |
|
The desired size of the icon |
Returns : |
a CoglHandle of the icon, or NULL . [transfer none]
|
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.
|
an MxIconTheme |
|
The name of the icon |
|
The desired size of the icon |
Returns : |
a ClutterTexture of the icon, or NULL . [transfer none]
|
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.
|
a MxIconTheme |
Returns : |
the search paths. [element-type utf8][transfer none] |
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.
|
a MxIconTheme |
|
a list of search paths. [element-type utf8] |