Class Layout¶
Defined in File layout.h
Page Contents
Inheritance Relationships¶
Base Type¶
public nanogui::Object
(Class Object)
Derived Types¶
public nanogui::AdvancedGridLayout
(Class AdvancedGridLayout)public nanogui::BoxLayout
(Class BoxLayout)public nanogui::GridLayout
(Class GridLayout)public nanogui::GroupLayout
(Class GroupLayout)
Class Documentation¶
-
class
Layout
: public nanogui::Object¶ Basic interface of a layout engine.
Subclassed by nanogui::AdvancedGridLayout, nanogui::BoxLayout, nanogui::GridLayout, nanogui::GroupLayout
Public Functions
-
virtual void
performLayout
(NVGcontext *ctx, Widget *widget) const = 0¶ Performs any and all resizing applicable.
- Parameters
ctx
: TheNanoVG
context being used for drawing.widget
: The Widget this layout is controlling sizing for.
-
virtual Vector2i
preferredSize
(NVGcontext *ctx, const Widget *widget) const = 0¶ The preferred size for this layout.
- Return
The preferred size, accounting for things such as spacing, padding for icons, etc.
- Parameters
ctx
: TheNanoVG
context being used for drawing.widget
: The Widget this layout’s preferred size is considering.
Protected Functions
-
virtual
~Layout
()¶ Default destructor (exists for inheritance).
-
virtual void