Gio::ThemedIcon Class Reference
Icon theming support ThemedIcon is an implementation of Gio::Icon that supports icon themes. More...
Inheritance diagram for Gio::ThemedIcon:

Public Member Functions | |
virtual | ~ThemedIcon () |
GThemedIcon* | gobj () |
Provides access to the underlying C GObject. | |
const GThemedIcon* | gobj () const |
Provides access to the underlying C GObject. | |
GThemedIcon* | gobj_copy () |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. | |
void | prepend_name (const std::string& iconname) |
void | append_name (const std::string& iconname) |
Append a name to the list of icons from within icon. | |
Static Public Member Functions | |
static Glib::RefPtr<ThemedIcon> | create (const std::string& iconname, bool use_default_callbacks=false) |
Protected Member Functions | |
ThemedIcon (const std::string& iconname, bool use_default_callbacks=false) | |
Related Functions | |
(Note that these are not member functions.) | |
Glib::RefPtr<Gio::ThemedIcon> | wrap (GThemedIcon* object, bool take_copy=false) |
A Glib::wrap() method for this object. |
Detailed Description
Icon theming support ThemedIcon is an implementation of Gio::Icon that supports icon themes.ThemedIcon contains a list of all of the icons present in an icon theme, so that icons can be looked up quickly. ThemedIcon does not provide actual pixmaps for icons, just the icon names. Ideally something like Gtk::IconTheme::choose_icon() should be used to resolve the list of names so that fallback icons work nicely with themes that inherit other themes.
Constructor & Destructor Documentation
virtual Gio::ThemedIcon::~ThemedIcon | ( | ) | [virtual] |
Gio::ThemedIcon::ThemedIcon | ( | const std::string & | iconname, | |
bool | use_default_callbacks = false | |||
) | [explicit, protected] |
Member Function Documentation
GThemedIcon* Gio::ThemedIcon::gobj | ( | ) | [inline] |
const GThemedIcon* Gio::ThemedIcon::gobj | ( | ) | const [inline] |
GThemedIcon* Gio::ThemedIcon::gobj_copy | ( | ) |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
static Glib::RefPtr<ThemedIcon> Gio::ThemedIcon::create | ( | const std::string & | iconname, | |
bool | use_default_callbacks = false | |||
) | [static] |
void Gio::ThemedIcon::prepend_name | ( | const std::string & | iconname | ) |
void Gio::ThemedIcon::append_name | ( | const std::string & | iconname | ) |
Append a name to the list of icons from within icon.
- Parameters:
-
iconname Name of icon to append to list of icons from within icon.
Friends And Related Function Documentation
Glib::RefPtr<Gio::ThemedIcon> wrap | ( | GThemedIcon * | object, | |
bool | take_copy = false | |||
) | [related] |
A Glib::wrap() method for this object.
- Parameters:
-
object The C instance. take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
- Returns:
- A C++ instance that wraps this C instance.
The documentation for this class was generated from the following file: