Template Class FormWidget< T, typename std::is_enum< T >::type >¶
Defined in File formhelper.h
Page Contents
Inheritance Relationships¶
Base Type¶
public nanogui::ComboBox
(Class ComboBox)
Class Documentation¶
-
template<typename
T
>
classFormWidget
<T, typename std::is_enum<T>::type> : public nanogui::ComboBox¶ A specialization for adding a ComboBox to a FormHelper.
- Template Parameters
T
: The type being used inside the ComboBox.
Public Functions
-
FormWidget
(Widget *p) Creates a new FormWidget with underlying type ComboBox.
-
T
value
() const Pass-through function for nanogui::ComboBox::selectedIndex.
-
void
setValue
(T value)¶ Pass-through function for nanogui::ComboBox::setSelectedIndex.
-
void
setCallback
(const std::function<void(const T&)> &cb)¶ Pass-through function for nanogui::ComboBox::setCallback.
-
void
setEditable
(bool e) Pass-through function for nanogui::Widget::setEnabled.