Class BoxLayout¶
Defined in File layout.h
Page Contents
Inheritance Relationships¶
Base Type¶
public nanogui::Layout
(Class Layout)
Class Documentation¶
-
class
BoxLayout
: public nanogui::Layout¶ 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.
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.
-