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
CellAreaContext self()Returns `this`, for use in `with` statements.CellAreaContextGidBuilder builder()Get builder for [gtk.cellareacontext.CellAreaContext] Returns: New builder objectgtk.cell_area.CellArea area() @propertyGet `area` property. Returns: The #GtkCellArea this context was created byint minimumHeight() @propertyGet `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() @propertyGet `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() @propertyGet `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() @propertyGet `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)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 #GtkCellArea 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.Methods
T area(gtk.cell_area.CellArea propval)Set `area` property. Params: propval = The #GtkCellArea this context was created by Returns: Builder instance for fluent chainingFluent builder for [gtk.cell_area_context.CellAreaContext]
Methods