Class StackedWidget

Inheritance Relationships

Base Type

Class Documentation

class StackedWidget : public nanogui::Widget

A stack widget.

Public Functions

StackedWidget(Widget *parent)
void setSelectedIndex(int index)
int selectedIndex() const
virtual void performLayout(NVGcontext *ctx)

Invoke the associated layout generator to properly place child widgets, if any.

virtual Vector2i preferredSize(NVGcontext *ctx) const

Compute the preferred size of the widget.

virtual void addChild(int index, Widget *widget)

Add a child widget to the current widget at the specified index.

This function almost never needs to be called by hand, since the constructor of Widget automatically adds the current widget to its parent