CellAreaContext
Object Hierarchy:
Gtk.CellAreaContext
Gtk.CellAreaContext
Gtk.CellAreaContext
GLib.Object
GLib.Object
GLib.Object->Gtk.CellAreaContext
Description:
[
CCode ( type_id =
"gtk_cell_area_context_get_type ()" ) ]
public class CellAreaContext :
Object
The CellAreaContext object is created by a given
CellArea implementation via its create_context virtual
method 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
render and
event .
Content:
Properties:
Creation methods:
Methods:
public virtual void allocate (int width, int height)
Allocates a width and/or a height for all rows which are to be rendered with
this .
public void get_allocation (out int width, out int height)
Fetches the current allocation size for this
.
public unowned CellArea get_area ()
Fetches the
CellArea this this was created by.
public void get_preferred_height (out int minimum_height, out int natural_height)
Gets the accumulative preferred height for all rows which have been
requested with this context.
public virtual void get_preferred_height_for_width (int width, out int minimum_height, out int natural_height)
Gets the accumulative preferred height for width
for all rows
which have been requested for the same said width
with this context.
public void get_preferred_width (out int minimum_width, out int natural_width)
Gets the accumulative preferred width for all rows which have been requested
with this context.
public virtual void get_preferred_width_for_height (int height, out int minimum_width, out int natural_width)
Gets the accumulative preferred width for height
for all rows
which have been requested for the same said height
with this context.
public void push_preferred_height (int minimum_height, int natural_height)
Causes the minimum and/or natural height to grow if the new proposed sizes
exceed the current minimum and natural height.
public void push_preferred_width (int minimum_width, int natural_width)
Causes the minimum and/or natural width to grow if the new proposed sizes
exceed the current minimum and natural width.
public virtual void reset ()
Resets any previously cached request and allocation data.
Inherited Members:
All known members inherited from class GLib.Object