Gtk.CellAreaBox

const Gtk = imports.gi.Gtk;

let cell_area_box = new Gtk.CellAreaBox({
    spacing: value,
});
  

The Gtk.CellAreaBox renders cell renderers into a row or a column depending on its Gtk.Orientation.

GtkCellAreaBox uses a notion of <emphasis>packing</emphasis>. Packing refers to adding cell renderers with reference to a particular position in a Gtk.CellAreaBox. There are two reference positions: the <emphasis>start</emphasis> and the <emphasis>end</emphasis> of the box. When the Gtk.CellAreaBox is oriented in the Gtk.Orientation.vertical orientation, the start is defined as the top of the box and the end is defined as the bottom. In the Gtk.Orientation.horizontal orientation start is defined as the left side and the end is defined as the right side.

Alignments of #GtkCellRenderers rendered in adjacent rows can be configured by configuring the #GtkCellAreaBox:align child cell property with Gtk.CellArea.prototype.cell_set_property or by specifying the "align" argument to Gtk.pack_start and Gtk.pack_end.

Hierarchy

  • GObject.Object
    • GObject.InitiallyUnowned
      • Gtk.CellArea
        • Gtk.CellAreaBox