Class: Gtk::CellAreaBox
- Defined in:
- (unknown)
Overview
A cell area that renders GtkCellRenderers into a row or a column
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().
Instance Method Summary collapse
-
#initialize ⇒ Gtk::CellArea
constructor
Creates a new
GtkCellAreaBox. -
#pack_end(renderer, expand, align, fixed) ⇒ nil
Adds renderer to box, packed with reference to the end of box.
-
#pack_start(renderer, expand, align, fixed) ⇒ nil
Adds renderer to box, packed with reference to the start of box.
-
#spacing ⇒ Integer
The amount of space to reserve between cells.
-
#spacing=(spacing) ⇒ Integer
The amount of space to reserve between cells.
Methods inherited from CellArea
#activate, #activate_cell, #add, #add_focus_sibling, #add_with_properties, #apply_attributes, #attribute_connect, #attribute_disconnect, #attribute_get_column, #cell_get, #cell_get_property, #cell_get_valist, #cell_set, #cell_set_property, #cell_set_valist, #copy_context, #create_context, #current_path_string, #edit_widget, #edit_widget=, #edited_cell, #edited_cell=, #event, #find_cell_property, #focus, #focus_cell, #focus_cell=, #foreach, #foreach_alloc, #get_cell_allocation, #get_cell_at_position, #get_focus_from_sibling, #get_focus_siblings, #get_preferred_height, #get_preferred_height_for_width, #get_preferred_width, #get_preferred_width_for_height, #has_renderer, #inner_cell_area, #install_cell_property, #is_activatable, #is_focus_sibling, #list_cell_properties, #remove, #remove_focus_sibling, #request_mode, #request_renderer, #snapshot, #stop_editing
Constructor Details
#initialize ⇒ Gtk::CellArea
Creates a new GtkCellAreaBox.
Instance Method Details
#pack_end(renderer, expand, align, fixed) ⇒ nil
Adds renderer to box, packed with reference to the end of box.
The renderer is packed after (away from end of) any other
GtkCellRenderer packed with reference to the end of box.
more than its natural size
#pack_start(renderer, expand, align, fixed) ⇒ nil
Adds renderer to box, packed with reference to the start of box.
The renderer is packed after any other GtkCellRenderer packed
with reference to the start of box.
more than its natural size
#spacing ⇒ Integer
The amount of space to reserve between cells.
#spacing=(spacing) ⇒ Integer
The amount of space to reserve between cells.