Template Class FormWidget< Color, std::true_type >

Inheritance Relationships

Base Type

Class Documentation

template<>
class FormWidget<Color, std::true_type> : public nanogui::ColorPicker

A specialization for adding a ColorPicker to a FormHelper.

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.