A container that stack its chidren horizontally.
var libui = require('libui');
var win = new libui.UiWindow('UiHorizontalBox example', 640, 480, true);
var widget = new libui.UiHorizontalBox();
win.setChild(widget);
win.onClosing(function () {
win.close();
libui.stopLoop();
});
win.show();
libui.startLoop();
new libui.UiHorizontalBox()
Create a new UiHorizontalBox object.
See properties implementation for generic details on how properties are implemented.
Whether the widget should be visible or hidden.
Read write.
Defaults to true
.
Whether the widget should be enabled or disabled.
Read write.
Defaults to true
.
If true, the container insert some space between children. Defaults to false.
Append a new child widget as last one.
Arguments
- control: UiControl - the control to append.
- stretchy: Boolean - whether the child should expand to use all available size.
Remove a child widget at specified position.
Arguments
- index: Number - the index of the control to remove.
Destroy and free the control.
Change the parent of the control
Arguments
- parent: UiControl - the new parent of the widget or null to detach it.
Return whether the control is a top level one or not.
Set the value of property visible
Arguments
- value: Boolean - The new value for
visible
property.
Return the value of property visible
Set the value of property enabled
Arguments
- value: Boolean - The new value for
enabled
property.
Return the value of property enabled
Set the value of property padded
Arguments
- value: Boolean - The new value for
padded
property.
Return the value of property padded