gtkmm 3.1.6
|
This stores geometrical information for a series of rows in a CellArea. More...
Public Member Functions | |
virtual | ~CellAreaContext () |
GtkCellAreaContext* | gobj () |
Provides access to the underlying C GObject. | |
const GtkCellAreaContext* | gobj () const |
Provides access to the underlying C GObject. | |
GtkCellAreaContext* | gobj_copy () |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. | |
Glib::RefPtr< CellArea > | get_area () |
Glib::RefPtr< const CellArea > | get_area () const |
void | allocate (int width, int height) |
void | reset () |
void | get_preferred_width (int& minimum_width, int& natural_width) const |
void | get_preferred_height (int& minimum_height, int& natural_height) const |
void | get_preferred_height_for_width (int width, int& minimum_height, int& natural_height) const |
void | get_preferred_width_for_height (int height, int& minimum_width, int& natural_width) const |
void | get_allocation (int& width, int& height) const |
void | push_preferred_width (int minimum_width, int natural_width) |
void | push_preferred_height (int minimum_height, int natural_height) |
Related Functions | |
(Note that these are not member functions.) | |
Glib::RefPtr < Gtk::CellAreaContext > | wrap (GtkCellAreaContext* object, bool take_copy=false) |
A Glib::wrap() method for this object. |
This stores geometrical information for a series of rows in a CellArea.
CellAreaContext is used by widgets such as TreeView and IconView, but application developers do not usually need to be aware of it.
The CellAreaContext object is created by a given CellArea and is used to store cell sizes and alignments for a series of TreeModel rows that are requested and rendered in the same context.
CellLayout widgets can create any number of contexts in which to request and render groups of data rows. However. it's important that the same context which was used to request sizes for a given TreeModel row also be used for the same row when calling other CellArea APIs such as gtk_cell_area_render() and gtk_cell_area_event().
virtual Gtk::CellAreaContext::~CellAreaContext | ( | ) | [virtual] |
void Gtk::CellAreaContext::allocate | ( | int | width, |
int | height | ||
) |
void Gtk::CellAreaContext::get_allocation | ( | int & | width, |
int & | height | ||
) | const |
Glib::RefPtr<const CellArea> Gtk::CellAreaContext::get_area | ( | ) | const |
Glib::RefPtr<CellArea> Gtk::CellAreaContext::get_area | ( | ) |
void Gtk::CellAreaContext::get_preferred_height | ( | int & | minimum_height, |
int & | natural_height | ||
) | const |
void Gtk::CellAreaContext::get_preferred_height_for_width | ( | int | width, |
int & | minimum_height, | ||
int & | natural_height | ||
) | const |
void Gtk::CellAreaContext::get_preferred_width | ( | int & | minimum_width, |
int & | natural_width | ||
) | const |
void Gtk::CellAreaContext::get_preferred_width_for_height | ( | int | height, |
int & | minimum_width, | ||
int & | natural_width | ||
) | const |
const GtkCellAreaContext* Gtk::CellAreaContext::gobj | ( | ) | const [inline] |
Provides access to the underlying C GObject.
Reimplemented from Glib::ObjectBase.
GtkCellAreaContext* Gtk::CellAreaContext::gobj | ( | ) | [inline] |
Provides access to the underlying C GObject.
Reimplemented from Glib::ObjectBase.
GtkCellAreaContext* Gtk::CellAreaContext::gobj_copy | ( | ) |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
void Gtk::CellAreaContext::push_preferred_height | ( | int | minimum_height, |
int | natural_height | ||
) |
void Gtk::CellAreaContext::push_preferred_width | ( | int | minimum_width, |
int | natural_width | ||
) |
void Gtk::CellAreaContext::reset | ( | ) |
Glib::RefPtr< Gtk::CellAreaContext > wrap | ( | GtkCellAreaContext * | object, |
bool | take_copy = false |
||
) | [related] |
A Glib::wrap() method for this object.
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. |