Contains children in horizontal box.
Procs
proc HBox(name: string; variable: var HBoxObj): HBoxPtr {...}{.raises: [], tags: [].}
-
Creates a new HBox pointer.
Arguments:
- name is a node name.
- variable is a HBoxObj variable.
Examples:
var gridobj: HBoxObj grid = HBox("HBox", gridobj)
proc HBox(obj: var HBoxObj): HBoxPtr {...}{.inline, raises: [], tags: [].}
-
Creates a new HBox pointer with default node name "HBox".
Arguments:
- variable is a HBoxObj variable.
Examples:
var gridobj: HBoxObj grid = HBox(gridobj)
Methods
method getChildSize(self: HBoxPtr): Vector2Ref {...}{.raises: [], tags: [].}
method addChild(self: HBoxPtr; child: NodePtr) {...}{.raises: [], tags: [].}
-
Adds new child in current node.
Arguments:
- child: other node.
method draw(self: HBoxPtr; w, h: GLfloat) {...}{.raises: [GLerror, Exception], tags: [RootEffect].}
- This uses in the window.nim.
method duplicate(self: HBoxPtr; obj: var HBoxObj): HBoxPtr {...}{.base, raises: [], tags: [].}
- Duplicates HBox object and create a new HBox pointer.
method resize(self: HBoxPtr; w, h: GLfloat) {...}{.raises: [], tags: [].}
-
Resizes HBox, if w and h not less than child size.
Arguments:
- w is a new width.
- h is a new height.