![]() |

A CellRendererPixbuf can be used to render an image in a cell. It allows you to render either a given Pixbuf (set via the pixbuf property) or a stock icon (set via the stock_id property).
To support the tree view, CellRendererPixbuf also supports rendering two alternative pixbufs, when the is_expanded property is true. If the is_expanded property is true and the pixbuf_expander_open property is set to a pixbuf, it renders that pixbuf. If the is_expanded property is false and the* pixbuf_expander_closed property is set to a pixbuf, it renders that one.
Public Member Functions | ||||
| virtual Glib::ustring | _property_renderable () | |||
| Returns the property that this CellRenderer renders. | ||||
| CellRendererPixbuf () | ||||
| const GtkCellRendererPixbuf* | gobj () const | |||
| Provides access to the underlying C GtkObject. | ||||
| GtkCellRendererPixbuf* | gobj () | |||
| Provides access to the underlying C GtkObject. | ||||
| virtual | ~CellRendererPixbuf () | |||
Related Functions | ||||
| (Note that these are not member functions.) | ||||
| Gtk::CellRendererPixbuf* | wrap (GtkCellRendererPixbuf* object, bool take_copy=false) | |||
| ||||
| virtual Gtk::CellRendererPixbuf::~CellRendererPixbuf | ( | ) | [virtual] |
| Gtk::CellRendererPixbuf::CellRendererPixbuf | ( | ) |
| virtual Glib::ustring Gtk::CellRendererPixbuf::_property_renderable | ( | ) | [virtual] |
Returns the property that this CellRenderer renders.
For instance, property_text for CellRendererText, and property_active for CellRendererToggle Needs to be overridden in derived classes.
Reimplemented from Gtk::CellRenderer.
| const GtkCellRendererPixbuf* Gtk::CellRendererPixbuf::gobj | ( | ) | const [inline] |
| GtkCellRendererPixbuf* Gtk::CellRendererPixbuf::gobj | ( | ) | [inline] |
| Gtk::CellRendererPixbuf* wrap | ( | GtkCellRendererPixbuf * | object, | |
| bool | take_copy = false | |||
| ) | [related] |
| 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. |