Class PopupButton¶
Defined in File popupbutton.h
Page Contents
Inheritance Relationships¶
Base Type¶
public nanogui::Button
(Class Button)
Derived Types¶
public nanogui::ColorPicker
(Class ColorPicker)public nanogui::ComboBox
(Class ComboBox)
Class Documentation¶
-
class
PopupButton
: public nanogui::Button¶ Button which launches a popup widget.
- Remark
This class overrides nanogui::Widget::mIconExtraScale to be
0.8f
, which affects all subclasses of this Widget. Subclasses must explicitly set a different value if needed (e.g., in their constructor).
Subclassed by nanogui::ColorPicker, nanogui::ComboBox
Public Functions
-
virtual
~PopupButton
()¶
-
void
setChevronIcon
(int icon)¶
-
int
chevronIcon
() const¶
-
virtual void
performLayout
(NVGcontext *ctx)¶ Invoke the associated layout generator to properly place child widgets, if any.
-
virtual void
save
(Serializer &s) const¶ Saves the state of this Button provided the given Serializer.
-
virtual bool
load
(Serializer &s)¶ Sets the state of this Button provided the given Serializer.