Template Class FormWidget< Color, std::true_type >

Inheritance Relationships

Base Type

Class Documentation

template <>
template<>
class nanogui::detail::FormWidget<Color, std::true_type>

A specialization for adding a ColorPicker to a FormHelper.

Inherits from nanogui::ColorPicker

Public Functions

FormWidget(Widget *p)

Creates a new FormWidget with underlying type ColorPicker.

void setValue(const Color &c)

Pass-through function for nanogui::ColorPicker::setColor.

void setEditable(bool e)

Pass-through function for nanogui::Widget::setEnabled.

Color value() const

Returns the value of nanogui::ColorPicker::color.