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>
-
template<>
classnanogui::detail::
FormWidget
<T, typename std::is_enum<T>::type>¶ A specialization for adding a ComboBox to a FormHelper.
- Template Parameters
T
: The type being used inside the ComboBox.
Inherits from nanogui::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.