Gtk.CellAreaContext
const Gtk = imports.gi.Gtk;
let cell_area_context = new Gtk.CellAreaContext({
area: value,
});
The Gtk.CellAreaContext object is created by a given Gtk.CellArea implementation via its Gtk.CellAreaClass.create_context() virtual method and is used to store cell sizes and alignments for a series of Gtk.TreeModel rows that are requested and rendered in the same context.
Gtk.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.TreeModel row also be used for the same row when calling other Gtk.CellArea APIs such as Gtk.CellArea.prototype.render and Gtk.CellArea.prototype.event.
Hierarchy
-
GObject.Object
- Gtk.CellAreaContext
Methods
- Gtk.CellAreaContext.prototype.allocate
- Gtk.CellAreaContext.prototype.get_allocation
- Gtk.CellAreaContext.prototype.get_area
- Gtk.CellAreaContext.prototype.get_preferred_height
- Gtk.CellAreaContext.prototype.get_preferred_height_for_width
- Gtk.CellAreaContext.prototype.get_preferred_width
- Gtk.CellAreaContext.prototype.get_preferred_width_for_height
- Gtk.CellAreaContext.prototype.push_preferred_height
- Gtk.CellAreaContext.prototype.push_preferred_width
- Gtk.CellAreaContext.prototype.reset