Main Page Widgets glibmm Namespaces Book

# Gio::ThemedIcon Class Reference

Icon theming support ThemedIcon is an implementation of Gio::Icon that supports icon themes. More...

Inheritance diagram for Gio::ThemedIcon:

[legend]
List of all members.

## 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 | 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)
## Protected Member Functions
| ThemedIcon (const std::string& iconname)
## 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.

Since glibmm 2.16:

## Constructor & Destructor Documentation

virtual Gio::ThemedIcon::~ThemedIcon | ( |  | ) | `[virtual]`

Gio::ThemedIcon::ThemedIcon | ( | const std::string & | iconname | ) | `[explicit, protected]`

## Member Function Documentation

GThemedIcon* Gio::ThemedIcon::gobj | ( |  | ) | `[inline]`

Provides access to the underlying C GObject.

Reimplemented from Gio::Icon.

const GThemedIcon* Gio::ThemedIcon::gobj | ( |  | ) | const`[inline]`

Provides access to the underlying C GObject.

Reimplemented from Gio::Icon.

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 | ) | `[static]`

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:

- themedicon.h