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
Stores geometrical information for a series of rows in a GtkCellArea
The `GtkCellAreaContext` object is created by a given `GtkCellArea` implementation via its `GtkCellAreaClass.create_context()` virtual
method and is used to store cell sizes and alignments for a series of `GtkTreeModel` rows that are requested and rendered in the same
context.
`GtkCellLayout` 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 `GtkTreeModel` row also be used for the same row when calling other
`GtkCellArea` APIs such as gtk_cell_area_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 `GtkCellArea` 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
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref