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

Inheritance Relationships

Base Type

Class Documentation

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