Template Class IntBox¶
Defined in File textbox.h
Page Contents
Inheritance Relationships¶
Base Type¶
public nanogui::TextBox
(Class TextBox)
Class Documentation¶
-
template<typename
Scalar
>
classIntBox
: public nanogui::TextBox¶ A specialization of TextBox for representing integral values.
Template parameters should be integral types, e.g.
int
,long
,uint32_t
, etc.Public Functions
-
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)
-
Scalar