- callback
void callback(void delegate(Scalar) cb)
Undocumented in source. Be warned that the author may not have intended to support it.
- maxValue
void maxValue(Scalar value)
Undocumented in source. Be warned that the author may not have intended to support it.
- minMaxValues
void minMaxValues(Scalar min_value, Scalar max_value)
Undocumented in source. Be warned that the author may not have intended to support it.
- minValue
void minValue(Scalar value)
Undocumented in source. Be warned that the author may not have intended to support it.
- mouseButtonEvent
bool mouseButtonEvent(Vector2i p, MouseButton button, bool down, int modifiers)
Undocumented in source. Be warned that the author may not have intended to support it.
- mouseDragEvent
bool mouseDragEvent(Vector2i p, Vector2i rel, MouseButton button, int modifiers)
Undocumented in source. Be warned that the author may not have intended to support it.
- scrollEvent
bool scrollEvent(Vector2i p, Vector2f rel)
Undocumented in source. Be warned that the author may not have intended to support it.
- value
Scalar value()
Undocumented in source. Be warned that the author may not have intended to support it.
- value
void value(Scalar v)
Undocumented in source. Be warned that the author may not have intended to support it.
- valueIncrement
void valueIncrement(Scalar value)
Undocumented in source. Be warned that the author may not have intended to support it.
- Alignment
enum Alignment
How to align the text in the text box.
- editable
bool editable()
Undocumented in source. Be warned that the author may not have intended to support it.
- editable
void editable(bool editable)
Undocumented in source. Be warned that the author may not have intended to support it.
- spinnable
bool spinnable()
Undocumented in source. Be warned that the author may not have intended to support it.
- spinnable
void spinnable(bool spinnable)
Undocumented in source. Be warned that the author may not have intended to support it.
- value
string value()
Undocumented in source. Be warned that the author may not have intended to support it.
- value
void value(string value)
Undocumented in source. Be warned that the author may not have intended to support it.
- defaultValue
string defaultValue()
Undocumented in source. Be warned that the author may not have intended to support it.
- defaultValue
void defaultValue(string defaultValue)
Undocumented in source. Be warned that the author may not have intended to support it.
- alignment
Alignment alignment()
Undocumented in source. Be warned that the author may not have intended to support it.
- alignment
void alignment(Alignment al)
Undocumented in source. Be warned that the author may not have intended to support it.
- units
string units()
Undocumented in source. Be warned that the author may not have intended to support it.
- units
void units(string units)
Undocumented in source. Be warned that the author may not have intended to support it.
- unitsImage
auto unitsImage()
Undocumented in source. Be warned that the author may not have intended to support it.
- unitsImage
void unitsImage(NVGImage image)
Undocumented in source. Be warned that the author may not have intended to support it.
- format
string format()
Return the underlying regular expression specifying valid formats
- format
void format(string format)
Specify a regular expression specifying valid formats
- placeholder
string placeholder()
Return the placeholder text to be displayed while the text box is empty.
- placeholder
void placeholder(string placeholder)
Specify a placeholder text to be displayed while the text box is empty.
- theme
void theme(Theme theme)
Set the Theme used to draw this widget
- callback
bool delegate(string str) callback()
The callback to execute when the value of this TextBox has changed.
- callback
void callback(bool delegate(string str) callback)
Sets the callback to execute when the value of this TextBox has changed.
- mouseButtonEvent
bool mouseButtonEvent(Vector2i p, MouseButton button, bool down, int modifiers)
Undocumented in source. Be warned that the author may not have intended to support it.
- mouseMotionEvent
bool mouseMotionEvent(Vector2i p, Vector2i rel, MouseButton button, int modifiers)
Undocumented in source. Be warned that the author may not have intended to support it.
- mouseDragEvent
bool mouseDragEvent(Vector2i p, Vector2i rel, MouseButton button, int modifiers)
Undocumented in source. Be warned that the author may not have intended to support it.
- focusEvent
bool focusEvent(bool focused)
Undocumented in source. Be warned that the author may not have intended to support it.
- keyboardEvent
bool keyboardEvent(int key, int scancode, KeyAction action, int modifiers)
Undocumented in source. Be warned that the author may not have intended to support it.
- keyboardCharacterEvent
bool keyboardCharacterEvent(dchar codepoint)
Undocumented in source. Be warned that the author may not have intended to support it.
- preferredSize
Vector2i preferredSize(NanoContext ctx)
Undocumented in source. Be warned that the author may not have intended to support it.
- draw
void draw(NanoContext ctx)
Undocumented in source. Be warned that the author may not have intended to support it.
- cursor
void cursor(Cursor value)
Undocumented in source. Be warned that the author may not have intended to support it.
- checkFormat
bool checkFormat(string input, string format)
Undocumented in source. Be warned that the author may not have intended to support it.
- copySelection
bool copySelection()
Undocumented in source. Be warned that the author may not have intended to support it.
- pasteFromClipboard
void pasteFromClipboard()
Undocumented in source. Be warned that the author may not have intended to support it.
- deleteSelection
bool deleteSelection()
Undocumented in source. Be warned that the author may not have intended to support it.
- updateCursor
void updateCursor(NanoContext ctx, float lastx, const(NVGGlyphPosition)[] glyphs)
Undocumented in source. Be warned that the author may not have intended to support it.
- cursorIndex2Position
float cursorIndex2Position(int index, float lastx, const(NVGGlyphPosition)[] glyphs)
Undocumented in source. Be warned that the author may not have intended to support it.
- position2CursorIndex
int position2CursorIndex(float posx, float lastx, const(NVGGlyphPosition)[] glyphs)
Undocumented in source. Be warned that the author may not have intended to support it.
- SpinArea
enum SpinArea
The location (if any) for the spin area.
- spinArea
SpinArea spinArea(Vector2i pos)
Undocumented in source. Be warned that the author may not have intended to support it.
- mEditable
bool mEditable;
Undocumented in source.
- mSpinnable
bool mSpinnable;
Undocumented in source.
- mCommitted
bool mCommitted;
Undocumented in source.
- mValue
string mValue;
Undocumented in source.
- mDefaultValue
string mDefaultValue;
Undocumented in source.
- mAlignment
Alignment mAlignment;
Undocumented in source.
- mUnits
string mUnits;
Undocumented in source.
- mFormat
string mFormat;
Undocumented in source.
- mUnitsImage
NVGImage mUnitsImage;
Undocumented in source.
- mCallback
bool delegate(string str) mCallback;
Undocumented in source.
- mValidFormat
bool mValidFormat;
Undocumented in source.
- mValueTemp
string mValueTemp;
Undocumented in source.
- mPlaceholder
string mPlaceholder;
Undocumented in source.
- mCursorPos
int mCursorPos;
Undocumented in source.
- mSelectionPos
int mSelectionPos;
Undocumented in source.
- mMousePos
Vector2i mMousePos;
Undocumented in source.
- mMouseDownPos
Vector2i mMouseDownPos;
Undocumented in source.
- mMouseDragPos
Vector2i mMouseDragPos;
Undocumented in source.
- mMouseDownModifier
int mMouseDownModifier;
Undocumented in source.
- mTextOffset
float mTextOffset;
Undocumented in source.
- mLastClick
double mLastClick;
Undocumented in source.
\class IntBox textbox.h nanogui/textbox.h
\brief A specialization of TextBox for representing integral values.
Template parameters should be integral types, e.g. int, long, uint32_t, etc.