Class

GtkCellAreaBox

Description [src]

class Gtk.CellAreaBox : Gtk.CellArea {
  /* No available fields */
}

The GtkCellAreaBox renders cell renderers into a row or a column depending on its GtkOrientation.

GtkCellAreaBox uses a notion of packing. Packing refers to adding cell renderers with reference to a particular position in a GtkCellAreaBox. There are two reference positions: the start and the end of the box. When the GtkCellAreaBox 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_cell_area_cell_set_property() or by specifying the “align” argument to gtk_cell_area_box_pack_start() and gtk_cell_area_box_pack_end().

Hierarchy

hierarchy this GtkCellAreaBox implements_0 GtkBuildable this--implements_0 implements_1 GtkCellLayout this--implements_1 implements_2 GtkOrientable this--implements_2 ancestor_0 GtkCellArea ancestor_0--this ancestor_1 GInitiallyUnowned ancestor_1--ancestor_0 ancestor_2 GObject ancestor_2--ancestor_1

Constructors

gtk_cell_area_box_new

Creates a new GtkCellAreaBox.

Available since: 3.0

Instance methods

gtk_cell_area_box_get_spacing

Gets the spacing added between cell renderers.

Available since: 3.0

gtk_cell_area_box_pack_end

Adds renderer to box, packed with reference to the end of box.

Available since: 3.0

gtk_cell_area_box_pack_start

Adds renderer to box, packed with reference to the start of box.

Available since: 3.0

gtk_cell_area_box_set_spacing

Sets the spacing to add between cell renderers in box.

Available since: 3.0

Methods inherited from GtkCellArea (44)

Please see GtkCellArea for a full list of methods.

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Methods inherited from GtkBuildable (10)
gtk_buildable_add_child

Adds a child to buildable. type is an optional string describing how the child should be added.

Available since: 2.12

gtk_buildable_construct_child

Constructs a child of buildable with the name name.

Available since: 2.12

gtk_buildable_custom_finished

This is similar to gtk_buildable_parser_finished() but is called once for each custom tag handled by the buildable.

Available since: 2.12

gtk_buildable_custom_tag_end

This is called at the end of each custom element handled by the buildable.

Available since: 2.12

gtk_buildable_custom_tag_start

This is called for each unknown element under <child>.

Available since: 2.12

gtk_buildable_get_internal_child

Get the internal child called childname of the buildable object.

Available since: 2.12

gtk_buildable_get_name

Gets the name of the buildable object.

Available since: 2.12

gtk_buildable_parser_finished

Called when the builder finishes the parsing of a [GtkBuilder UI definition][BUILDER-UI]. Note that this will be called once for each time gtk_builder_add_from_file() or gtk_builder_add_from_string() is called on a builder.

Available since: 2.12

gtk_buildable_set_buildable_property

Sets the property name name to value on the buildable object.

Available since: 2.12

gtk_buildable_set_name

Sets the name of the buildable object.

Available since: 2.12

Methods inherited from GtkCellLayout (10)
gtk_cell_layout_add_attribute

Adds an attribute mapping to the list in cell_layout.

Available since: 2.4

gtk_cell_layout_clear

Unsets all the mappings on all renderers on cell_layout and removes all renderers from cell_layout.

Available since: 2.4

gtk_cell_layout_clear_attributes

Clears all existing attributes previously set with gtk_cell_layout_set_attributes().

Available since: 2.4

gtk_cell_layout_get_area

Returns the underlying GtkCellArea which might be cell_layout if called on a GtkCellArea or might be NULL if no GtkCellArea is used by cell_layout.

Available since: 3.0

gtk_cell_layout_get_cells

Returns the cell renderers which have been added to cell_layout.

Available since: 2.12

gtk_cell_layout_pack_end

Adds the cell to the end of cell_layout. If expand is FALSE, then the cell is allocated no more space than it needs. Any unused space is divided evenly between cells for which expand is TRUE.

Available since: 2.4

gtk_cell_layout_pack_start

Packs the cell into the beginning of cell_layout. If expand is FALSE, then the cell is allocated no more space than it needs. Any unused space is divided evenly between cells for which expand is TRUE.

Available since: 2.4

gtk_cell_layout_reorder

Re-inserts cell at position.

Available since: 2.4

gtk_cell_layout_set_attributes

Sets the attributes in list as the attributes of cell_layout.

Available since: 2.4

gtk_cell_layout_set_cell_data_func

Sets the GtkCellLayoutDataFunc to use for cell_layout.

Available since: 2.4

Methods inherited from GtkOrientable (2)
gtk_orientable_get_orientation

Retrieves the orientation of the orientable.

Available since: 2.16

gtk_orientable_set_orientation

Sets the orientation of the orientable.

Available since: 2.16

Properties

Gtk.CellAreaBox:spacing

The amount of space to reserve between cells.

Available since: 3.0

Properties inherited from GtkCellArea (3)
Gtk.CellArea:edit-widget

The widget currently editing the edited cell.

Available since: 3.0

Gtk.CellArea:edited-cell

The cell in the area that is currently edited.

Available since: 3.0

Gtk.CellArea:focus-cell

The cell in the area that currently has focus.

Available since: 3.0

Properties inherited from GtkOrientable (1)
Gtk.Orientable:orientation

The orientation of the orientable.

Available since: 2.16

Signals

Signals inherited from GtkCellArea (4)
Gtk.CellArea::add-editable

Indicates that editing has started on renderer and that editable should be added to the owning cell-layouting widget at cell_area.

Available since: 3.0

Gtk.CellArea::apply-attributes

This signal is emitted whenever applying attributes to area from model.

Available since: 3.0

Gtk.CellArea::focus-changed

Indicates that focus changed on this area. This signal is emitted either as a result of focus handling or event handling.

Available since: 3.0

Gtk.CellArea::remove-editable

Indicates that editing finished on renderer and that editable should be removed from the owning cell-layouting widget.

Available since: 3.0

Signals inherited from GObject (1)
GObject.Object::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Class structure

struct GtkCellAreaBoxClass {
  void (* _gtk_reserved1) (
void
  );
  void (* _gtk_reserved2) (
void
  );
  void (* _gtk_reserved3) (
void
  );
  void (* _gtk_reserved4) (
void
  );
  
}
No description available.
Class members
_gtk_reserved1
void (* _gtk_reserved1) (
void
  )
  No description available.
_gtk_reserved2
void (* _gtk_reserved2) (
void
  )
  No description available.
_gtk_reserved3
void (* _gtk_reserved3) (
void
  )
  No description available.
_gtk_reserved4
void (* _gtk_reserved4) (
void
  )
  No description available.