Class BoxLayout¶
- Defined in File layout.h
Page Contents
Inheritance Relationships¶
Base Type¶
public nanogui::Layout
(Class Layout)
Class Documentation¶
-
class
nanogui::
BoxLayout
¶ Simple horizontal/vertical box layout.
This widget stacks up a bunch of widgets horizontally or vertically. It adds margins around the entire container and a custom spacing between adjacent widgets.
Inherits from nanogui::Layout
Public Functions
-
BoxLayout
(Orientation orientation, Alignment alignment = Alignment::Middle, int margin = 0, int spacing = 0)¶ Construct a box layout which packs widgets in the given
Orientation
.
-
Orientation
orientation
() const¶ The Orientation this BoxLayout is using.
-
void
setOrientation
(Orientation orientation)¶ Sets the Orientation of this BoxLayout.
-