![]() |
![]() |
Public Member Functions | |
void | append_search_path (const Glib::ustring& path) |
Appends a directory to the search path. | |
Glib::ustring | get_example_icon_name () const |
Gets the name of an icon that is representative of the current theme (for instance, to use when presenting a list of themes to the user. | |
Glib::ArrayHandle<int> | get_icon_sizes (const Glib::ustring& icon_name) const |
Glib::ArrayHandle<Glib::ustring> | get_search_path () const |
const GtkIconTheme* | gobj () const |
Provides access to the underlying C GObject. | |
GtkIconTheme* | gobj () |
Provides access to the underlying C GObject. | |
GtkIconTheme* | gobj_copy () |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. | |
bool | has_icon (const Glib::ustring& icon_name) const |
Checks whether an icon theme includes an icon for a particular name. | |
Glib::ListHandle<Glib::ustring> | list_icons (const Glib::ustring& context) const |
Lists the icons in the current icon theme. | |
Glib::RefPtr<Gdk::Pixbuf> | load_icon (const Glib::ustring& icon_name, int size, IconLookupFlags flags) const |
Looks up an icon in an icon theme, scales it to the given size and renders it into a pixbuf. | |
IconInfo | lookup_icon (const Glib::ustring& icon_name, int size, IconLookupFlags flags) const |
Looks up a named icon and returns a structure containing information such as the filename of the icon. | |
void | prepend_search_path (const Glib::ustring& path) |
Prepends a directory to the search path. | |
bool | rescan_if_needed () |
Checks to see if the icon theme has changed; if it has, any currently cached information is discarded and will be reloaded next time icon_theme is accessed. | |
void | set_custom_theme (const Glib::ustring& theme_name) |
Sets the name of the icon theme that the Gtk::IconTheme object uses overriding system configuration. | |
void | set_screen (const Glib::RefPtr<Gdk::Screen>& screen) |
Sets the screen for an icon theme; the screen is used to track the user's currently configured icon theme, which might be different for different screens. | |
void | set_search_path (const Glib::ArrayHandle<Glib::ustring>& path) |
Glib::SignalProxy0<void> | signal_changed () |
virtual | ~IconTheme () |
Static Public Member Functions | |
static void | add_builtin_icon (const Glib::ustring& icon_name, int size, const Glib::RefPtr<Gdk::Pixbuf>& pixbuf) |
Registers a built-in icon for icon theme lookups. | |
static Glib::RefPtr<IconTheme> | create () |
static Glib::RefPtr<IconTheme> | get_default () |
Gets the icon theme for the default screen. | |
static Glib::RefPtr<IconTheme> | get_for_screen (const Glib::RefPtr<Gdk::Screen>& screen) |
Gets the icon theme object associated with screen ; if this function has not previously been called for the given screen, a new icon theme object will be created and associated with the screen. | |
Protected Member Functions | |
IconTheme () | |
virtual void | on_changed () |
Related Functions | |
(Note that these are not member functions.) | |
Glib::RefPtr<Gtk::IconTheme> | wrap (GtkIconTheme* object, bool take_copy=false) |
|
|
|
|
|
Registers a built-in icon for icon theme lookups. The idea of built-in icons is to allow an application or library that uses themed icons to function requiring files to be present in the file system. For instance, the default images for all of GTK+'s stock icons are registered as built-icons. In general, if you use add_builtin_icon() you should also install the icon in the icon theme, so that the icon is generally available. This function will generally be used with pixbufs loaded via gdk_pixbuf_new_from_inline().
|
|
Appends a directory to the search path. See set_search_path().
|
|
|
|
Gets the icon theme for the default screen. See get_for_screen().
|
|
Gets the name of an icon that is representative of the current theme (for instance, to use when presenting a list of themes to the user. )
|
|
Gets the icon theme object associated with screen ; if this function has not previously been called for the given screen, a new icon theme object will be created and associated with the screen. Icon theme objects are fairly expensive to create, so using this function is usually a better choice than calling than new() and setting the screen yourself; by using this function a single icon theme object will be shared between users.
|
|
|
|
|
|
Provides access to the underlying C GObject.
Reimplemented from Glib::ObjectBase. |
|
Provides access to the underlying C GObject.
Reimplemented from Glib::ObjectBase. |
|
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
|
|
Checks whether an icon theme includes an icon for a particular name.
|
|
Lists the icons in the current icon theme. Only a subset of the icons can be listed by providing a context string. The set of values for the context string is system dependent, but will typically include such values as 'apps' and 'mimetypes'.
|
|
Looks up an icon in an icon theme, scales it to the given size and renders it into a pixbuf. This is a convenience function; if more details about the icon are needed, use lookup_icon() followed by gtk_icon_info_load_icon().
|
|
Looks up a named icon and returns a structure containing information such as the filename of the icon. The icon can then be rendered into a pixbuf using gtk_icon_info_load_icon(). (load_icon() combines these two steps if all you need is the pixbuf.)
|
|
|
|
Prepends a directory to the search path. See set_search_path().
|
|
Checks to see if the icon theme has changed; if it has, any currently cached information is discarded and will be reloaded next time icon_theme is accessed.
|
|
Sets the name of the icon theme that the Gtk::IconTheme object uses overriding system configuration. This function cannot be called on the icon theme objects returned from get_default() and get_for_screen().
|
|
Sets the screen for an icon theme; the screen is used to track the user's currently configured icon theme, which might be different for different screens.
|
|
|
|
|
|
|