Box
Object Hierarchy:
Description:
public class Box :
Container
Container for laying out widgets horizontally or vertically.
A horizontal box with 3 children might look like this:
+-----+-----+----------------+
| | | |
| 1 | 2 | 3 |
| | | |
+-----+-----+----------------+
If the last child Widget has horizontal_align == WidgetAlign.FILL
and there are no
Spacer child widgets, the last widget will be stretched to fill the remaining space.
Otherwise, the Widget.horizontal_align property will have no
effect.
The Widget.vertical_align property can be used to position the
child widgets vertically. WidgetAlign.START will align the widget to
the top of the Box, WidgetAlign.CENTER will align it in the middle of
the Box, WidgetAlign.END will align it to the bottom of the box and
WidgetAlign.FILL will use the entire height of the box.
Vertical boxes work similarly except the vertical and horizontal properties are swapped.
Content:
Properties:
Creation methods:
Methods:
- protected override int get_preferred_width ()
Gets the preferred width of the widget.
- protected override int get_preferred_height ()
Gets the preferred height of the widget.
- protected override int get_preferred_width_for_height (int height)
Gets the preferred width of the widget for the specified height.
- protected override int get_preferred_height_for_width (int width)
Gets the preferred height of the widget for the specified width.
- protected override void do_layout ()
Implementations should override this method if they need to handle
laying out its contents.
Inherited Members:
All known members inherited from class EV3devKit.UI.Container
All known members inherited from class EV3devKit.UI.Widget
All known members inherited from class GLib.Object
- @new
- newv
- new_valist
- get_type
- get_class
- @ref
- unref
- ref_sink
- weak_ref
- weak_unref
- add_weak_pointer
- remove_weak_pointer
- @get
- @set
- get_property
- set_property
- get_data
- set_data
- set_data_full
- steal_data
- get_qdata
- set_qdata
- set_qdata_full
- steal_qdata
- freeze_notify
- thaw_notify
- dispose
- constructed
- notify_property
- connect
- disconnect
- add_toggle_ref
- remove_toggle_ref
- bind_property
- notify
- ref_count