Container
Object Hierarchy:
Description:
public abstract class Container :
Widget
A Widget that can contain other Widgets.
Content:
Properties:
- public Widget? child { owned get; }
Gets the first child of the Container.
- public BidirList<Widget> children { owned get; }
Gets a read-only list of children of the Container.
- public bool descendant_has_focus { get; }
Returns true if any of the children of this Container currently has
focus.
- public virtual bool draw_children_as_focused { get; }
Returns true if children of this Container should be drawn as
focused in addition to the Container itself.
- public ContainerType container_type { construct; get; }
Gets the type of container.
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.
- public void add (Widget widget)
Adds a new Widget to this Container.
- public void insert_before (Widget new_widget, Widget existing_widget)
Insert a widget before an existing widget.
- public void remove (Widget widget)
Removes a widget from the list of children.
- public void sort (owned CompareDataFunc<Widget> func)
Sorts the list of children using the provided function.
- public bool focus_first ()
Focuses the first descendant of the container that can focus.
- protected void set_child_bounds (Widget child, int x1, int y1, int x2, int y2)
Sets the bounding rectangles for a child widget.
- protected override void do_layout ()
Implementations should override this method if they need to handle
laying out its contents.
- protected override void draw_content ()
Implementations should override this method.
Signals:
Fields:
Inherited Members:
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