Template Class FloatBox¶
Defined in File textbox.h
Page Contents
Inheritance Relationships¶
Base Type¶
public nanogui::TextBox(Class TextBox)
Class Documentation¶
-
template<typename
Scalar>
classFloatBox: public nanogui::TextBox¶ A specialization of TextBox representing floating point values.
Template parameters should be float types, e.g.
float,double,float64_t, etc.Public Functions
-
std::string
numberFormat() const¶
-
void
numberFormat(const std::string &format)¶
-
Scalar
value() const¶
-
void
setValue(Scalar value)¶
-
void
setCallback(const std::function<void(Scalar)> &cb)¶
-
void
setValueIncrement(Scalar incr)¶
-
void
setMinValue(Scalar minValue)¶
-
void
setMaxValue(Scalar maxValue)¶
-
void
setMinMaxValues(Scalar minValue, Scalar maxValue)¶
-
virtual bool
mouseButtonEvent(const Vector2i &p, int button, bool down, int modifiers)¶ Handle a mouse button event (default implementation: propagate to children)
-
std::string