gtk.cell_area_context

Module for [CellAreaContext] class

Types 3

Stores geometrical information for a series of rows in a GtkCellArea

The [gtk.cell_area_context.CellAreaContext] object is created by a given [gtk.cell_area.CellArea] implementation via its GtkCellAreaClass.create_context() virtual method and is used to store cell sizes and alignments for a series of [gtk.tree_model.TreeModel] rows that are requested and rendered in the same context.

[gtk.cell_layout.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 [gtk.tree_model.TreeModel] row also be used for the same row when calling other [gtk.cell_area.CellArea] APIs such as [gtk.cell_area.CellArea.render] and [gtk.cell_area.CellArea.event].

Deprecated

This object will be removed in GTK 5
Methods
GType _gType() @property
CellAreaContext self()Returns `this`, for use in `with` statements.
CellAreaContextGidBuilder builder()Get builder for [gtk.cellareacontext.CellAreaContext] Returns: New builder object
gtk.cell_area.CellArea area() @propertyGet `area` property. Returns: The [gtk.cell_area.CellArea] this context was created by
int minimumHeight() @propertyGet `minimumHeight` property. Returns: The minimum height for the [gtk.cellarea.CellArea] in this context for all [gtk.treemodel.TreeModel] rows that this context was requested for using [gtk.cell_...
int minimumWidth() @propertyGet `minimumWidth` property. Returns: The minimum width for the [gtk.cellarea.CellArea] in this context for all [gtk.treemodel.TreeModel] rows that this context was requested for using [gtk.cell_ar...
int naturalHeight() @propertyGet `naturalHeight` property. Returns: The natural height for the [gtk.cellarea.CellArea] in this context for all [gtk.treemodel.TreeModel] rows that this context was requested for using [gtk.cell_...
int naturalWidth() @propertyGet `naturalWidth` property. Returns: The natural width for the [gtk.cellarea.CellArea] in this context for all [gtk.treemodel.TreeModel] rows that this context was requested for using [gtk.cell_ar...
void allocate(int width, int height)Allocates a width and/or a height for all rows which are to be rendered with context.
void getAllocation(out int width, out int height)Fetches the current allocation size for context.
gtk.cell_area.CellArea getArea()Fetches the [gtk.cell_area.CellArea] this context was created by.
void getPreferredHeight(out int minimumHeight, out int naturalHeight)Gets the accumulative preferred height for all rows which have been requested with this context.
void getPreferredHeightForWidth(int width, out int minimumHeight, out int naturalHeight)Gets the accumulative preferred height for width for all rows which have been requested for the same said width with this context.
void getPreferredWidth(out int minimumWidth, out int naturalWidth)Gets the accumulative preferred width for all rows which have been requested with this context.
void getPreferredWidthForHeight(int height, out int minimumWidth, out int naturalWidth)Gets the accumulative preferred width for height for all rows which have been requested for the same said height with this context.
void pushPreferredHeight(int minimumHeight, int naturalHeight)Causes the minimum and/or natural height to grow if the new proposed sizes exceed the current minimum and natural height.
void pushPreferredWidth(int minimumWidth, int naturalWidth)Causes the minimum and/or natural width to grow if the new proposed sizes exceed the current minimum and natural width.
void reset()Resets any previously cached request and allocation data.
Constructors
this(void * ptr, Flag!"Take" take)
Methods
T area(gtk.cell_area.CellArea propval)Set `area` property. Params: propval = The [gtk.cell_area.CellArea] this context was created by Returns: Builder instance for fluent chaining

Fluent builder for [gtk.cell_area_context.CellAreaContext]