Xfce Foundation Classes
Main Page  | IndexNamespace List  |  Alphabetical List  |  Class List  |  File List


Public Member Functions | Static Protected Attributes
Xfc::Gtk::CellView Class Reference

A GtkCellView C++ wrapper class. More...

#include <xfc/gtk/cellview.hh>

Inheritance diagram for Xfc::Gtk::CellView:
Xfc::Gtk::Widget Xfc::Gtk::CellLayout Xfc::Gtk::Object Xfc::Atk::Implementor Xfc::G::TypeInterface Xfc::G::Object Xfc::G::TypeInterface Xfc::G::TypeInstance Xfc::G::TypeInstance Xfc::G::TypeInstance Xfc::Trackable Xfc::Trackable Xfc::Trackable

List of all members.

Public Member Functions

Static Protected Attributes

Constructors


Detailed Description

A GtkCellView C++ wrapper class.

A CellView displays a single row of a Gtk::TreeModel, using cell renderers just like Gtk::TreeView. CellView doesn't support some of the more complex features of Gtk::TreeView, like cell editing and drag and drop.


Constructor & Destructor Documentation

Xfc::Gtk::CellView::CellView ( GtkCellView *  cell_view,
bool  owns_reference = false 
) [explicit, protected]

Construct a new CellView from an existing GtkCellView.

Parameters:
cell_viewA pointer to a GtkCellView.
owns_referenceSet false if the initial reference count is floating, set true if it's not.

The cell_view can be a newly created GtkCellView or an existing GtkCellView. (see G::Object::Object).

Xfc::Gtk::CellView::CellView ( const String text,
bool  use_markup = false 
)

Constructs a new cell view widget, adds a Gtk::CellRendererText to it, and makes its show text.

Parameters:
textThe text to display in the cell view.
use_markupSet to true if text is marked up.

If use_markup is true, text can be text marked up with the Pango text markup language.

Xfc::Gtk::CellView::CellView ( Gdk::Pixbuf pixbuf)

Constructs a new cell view widget, adds a Gtk::CellRendererPixbuf to it, and makes its show pixbuf.

Parameters:
pixbufThe image to display in the cell view.

Member Function Documentation

bool Xfc::Gtk::CellView::get_cell_renderers ( std::vector< CellRenderer * > &  cell_list)

Obtains a list of cell renderers which have been added to the cell view.

Parameters:
cell_listA reference to a vector of CellRenderer* to hold the list of cell renderers.
Returns:
true if cell_list is not empty.

Obtains the path of the row currently displayed by the cell view, or null if the path pointed to is no longer valid.

Returns:
The current path, or a null pointer.
bool Xfc::Gtk::CellView::get_size_of_row ( const TreePath path,
Requisition requisition 
)

Sets requisition to the size needed by the cell view to display the model row pointed to by path.

Parameters:
pathA TreePath.
requisitionThe return location for the size.
Returns:
true
const BackgroundPropertyProxy Xfc::Gtk::CellView::property_background ( )

The background color as a string (String : Write).

Sets the background color of the cell view.

Parameters:
colorThe new background color, or null to unset the current color.

Sets the row of the model that is currently displayed by the cell view.

Parameters:
pathA TreePath or null to unset the current path.

If the path is unset, then the contents of the cellview "stick" at their last value; this is not normally a desired result, but may be a needed intermediate state if say, the model for the cell view becomes temporarily empty.

Sets the model for the cell view.

Parameters:
modelA TreeModel

If the cell view already has a model set, it will remove it before setting the new model. If model is null, then it will unset the old model.


The documentation for this class was generated from the following file:
Xfce Foundation Classes
Copyright © 2004-2005 The XFC Development Team XFC