CellAreaContext

open class CellAreaContext(pointer: <Error class: unknown class><<Error class: unknown class>>)

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 gtk_cell_area_event().

Skipped during bindings generation

  • parameter width: width: Out parameter is not supported

  • parameter minimum_height: minimum_height: Out parameter is not supported

  • parameter minimum_height: minimum_height: Out parameter is not supported

  • parameter minimum_width: minimum_width: Out parameter is not supported

  • parameter minimum_width: minimum_width: Out parameter is not supported

  • method minimum-height: Property has no getter nor setter

  • method minimum-width: Property has no getter nor setter

  • method natural-height: Property has no getter nor setter

  • method natural-width: Property has no getter nor setter

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open val area: CellArea

The GtkCellArea this context was created by

Link copied to clipboard
val gtkCellAreaContextPointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard
open fun allocate(width: Int, height: Int)

Allocates a width and/or a height for all rows which are to be rendered with @context.

Link copied to clipboard
open fun getArea(): CellArea

Fetches the GtkCellArea this @context was created by.

Link copied to clipboard
open fun pushPreferredHeight(minimumHeight: Int, naturalHeight: Int)

Causes the minimum and/or natural height to grow if the new proposed sizes exceed the current minimum and natural height.

Link copied to clipboard
open fun pushPreferredWidth(minimumWidth: Int, naturalWidth: Int)

Causes the minimum and/or natural width to grow if the new proposed sizes exceed the current minimum and natural width.

Link copied to clipboard
open fun reset()

Resets any previously cached request and allocation data.