gtk.cell_area_context

Module for [CellAreaContext] class

Types 3

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.CellArea.render and gtk.cell_area.CellArea.event.

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
CellAreaContext self() nothrowReturns `this`, for use in `with` statements.
CellAreaContextGidBuilder builder() static nothrowGet builder for [gtk.cell_area_context.CellAreaContext] Returns: New builder object
gtk.cell_area.CellArea area() @property nothrowGet `area` property. Returns: The #GtkCellArea this context was created by
int minimumHeight() @property nothrowGet `minimumHeight` property. Returns: The minimum height for the #GtkCellArea in this context for all #GtkTreeModel rows that this context was requested for using [gtk.cell_area.CellArea.getPrefer...
int minimumWidth() @property nothrowGet `minimumWidth` property. Returns: The minimum width for the #GtkCellArea in this context for all #GtkTreeModel rows that this context was requested for using [gtk.cell_area.CellArea.getPreferre...
int naturalHeight() @property nothrowGet `naturalHeight` property. Returns: The natural height for the #GtkCellArea in this context for all #GtkTreeModel rows that this context was requested for using [gtk.cell_area.CellArea.getPrefer...
int naturalWidth() @property nothrowGet `naturalWidth` property. Returns: The natural width for the #GtkCellArea in this context for all #GtkTreeModel rows that this context was requested for using [gtk.cell_area.CellArea.getPreferre...
void allocate(int width, int height) nothrowAllocates a width and/or a height for all rows which are to be rendered with context.
void getAllocation(out int width, out int height) nothrowFetches the current allocation size for context.
gtk.cell_area.CellArea getArea() nothrowFetches the #GtkCellArea this context was created by.
void getPreferredHeight(out int minimumHeight, out int naturalHeight) nothrowGets the accumulative preferred height for all rows which have been requested with this context.
void getPreferredHeightForWidth(int width, out int minimumHeight, out int naturalHeight) nothrowGets 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) nothrowGets the accumulative preferred width for all rows which have been requested with this context.
void getPreferredWidthForHeight(int height, out int minimumWidth, out int naturalWidth) nothrowGets 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) nothrowCauses 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) nothrowCauses the minimum and/or natural width to grow if the new proposed sizes exceed the current minimum and natural width.
void reset() nothrowResets any previously cached request and allocation data.
Constructors
this(void * ptr, Flag!"Take" take)

Fluent builder implementation template for gtk.cell_area_context.CellAreaContext

Methods
T area(gtk.cell_area.CellArea propval) nothrowSet `area` property. Params: propval = The #GtkCellArea this context was created by Returns: Builder instance for fluent chaining
Methods
CellAreaContext build() nothrowCreate object from builder. Returns: New object