Template Class FormWidget< T, typename std::is_enum< T >::type >

Inheritance Relationships

Base Type

Class Documentation

template<typename T>
class FormWidget<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.