Template Class FormWidget¶
Defined in File formhelper.h
Page Contents
Class Documentation¶
-
template<typename
T, typenamesfinae= std::true_type>
classFormWidget¶ A template wrapper class for assisting in the creation of various form widgets.
The partial template specializations are:
Inheritance from
nanogui::ComboBoxforenumtypes:template <typename T> class FormWidget<T, typename std::is_enum<T>::type> : public ComboBox
Inheritance from
nanogui::IntBoxfor integral types:template <typename T> class FormWidget<T, typename std::is_integral<T>::type> : public IntBox<T>
Inheritance from
nanogui::FloatBoxfor floating point types:template <typename T> class FormWidget<T, typename std::is_floating_point<T>::type> : public FloatBox<T>
The full template specializations are:
Inheritance from
nanogui::CheckBoxfor booleans:template <> class FormWidget<bool, std::true_type> : public CheckBox
Inheritance from
nanogui::TextBoxfor strings:template <> class FormWidget<std::string, std::true_type> : public TextBox
Inheritance from
nanogui::ColorPickerfornanogui::Colortypes:template <> class FormWidget<Color, std::true_type> : public ColorPicker
Please refer to the bottom of Program Listing for File formhelper.h for the implementation details.