Reference Manual
Inti Logo
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

Inti::Gtk::CellRendererText Class Reference

A GtkCellRendererText C++ wrapper class. More...

#include <inti/gtk/cellrenderer.h>

Inheritance diagram for Inti::Gtk::CellRendererText:

Inti::Gtk::CellRenderer Inti::Gtk::Object Inti::G::Object Inti::G::TypeInstance Inti::MemoryHandler Inti::ReferencedBase List of all members.

Public Member Functions

Constructors
Accessors
Methods
Property Proxies
Signal Proxies

Protected Member Functions

Constructors
Signal Handlers

Detailed Description

A GtkCellRendererText C++ wrapper class.


Constructor & Destructor Documentation

Inti::Gtk::CellRendererText::CellRendererText GtkCellRendererText *  cell,
bool  reference = false
[explicit, protected]
 

Construct a new CellRendererText from an existing GtkCellRendererText.

Parameters:
cell A pointer to a GtkCellRendererText.
reference Set false if the initial reference count is floating, set true if it's not.

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

Inti::Gtk::CellRendererText::CellRendererText  ) 
 

Construct a new CellRendererText.

You can adjust how text is drawn using object properties. Also, with TreeViewColumn, you can bind a property to a value in a TreeModel. For example, you can bind the "text" property on the cell renderer to a string value in the model, thus rendering a different string in each row of the TreeView.


Member Function Documentation

void Inti::Gtk::CellRendererText::set_fixed_height_from_font int  number_of_rows  ) 
 

Sets the height of a renderer to explicitly be determined by the "font" and the "y_pad" property set on it.

Parameters:
number_of_rows Number of rows of text each cell renderer is allocated, or -1

Further changes in these properties do not affect the height, so they must be accompanied by a subsequent call to this function. Using this function is unflexible, and should really only be used if calculating the size of a cell is too slow (ie, a massive number of cells displayed). If number_of_rows is -1, then the fixed height is unset, and the height is determined by the properties again.


The documentation for this class was generated from the following file: Main Page - Footer


Generated on Sun Sep 14 20:08:14 2003 for Inti by doxygen 1.3.2 written by Dimitri van Heesch, © 1997-2002