#include <TextEdit.h>
◆ TextEdit()
open3d::gui::TextEdit::TextEdit |
( |
| ) |
|
◆ ~TextEdit()
open3d::gui::TextEdit::~TextEdit |
( |
| ) |
|
◆ CalcPreferredSize()
Size open3d::gui::TextEdit::CalcPreferredSize |
( |
const Theme & |
theme | ) |
const |
|
overridevirtual |
◆ Draw()
Draws the widget. If this is a Dear ImGUI widget, this is where the actual event processing happens. Return NONE if no action needs to be taken, REDRAW if the widget needs to be redrawn (e.g. its value changed), and RELAYOUT if the widget wishes to change size.
Reimplemented from open3d::gui::Widget.
◆ GetPlaceholderText()
const char * open3d::gui::TextEdit::GetPlaceholderText |
( |
| ) |
const |
Returns the text displayed if the text value is empty.
◆ GetText()
const char * open3d::gui::TextEdit::GetText |
( |
| ) |
const |
Returns the current text value displayed.
◆ SetOnTextChanged()
void open3d::gui::TextEdit::SetOnTextChanged |
( |
std::function< void(const char *)> |
on_text_changed | ) |
|
Sets the function that is called whenever the text in the widget changes. This will be called for every keystroke and edit.
◆ SetOnValueChanged()
void open3d::gui::TextEdit::SetOnValueChanged |
( |
std::function< void(const char *)> |
on_value_changed | ) |
|
Sets the function that is called whenever the text is the widget is finished editing via pressing enter or clicking off the widget.
◆ SetPlaceholderText()
void open3d::gui::TextEdit::SetPlaceholderText |
( |
const char * |
text | ) |
|
Sets the text to display if the text value is empty.
◆ SetText()
void open3d::gui::TextEdit::SetText |
( |
const char * |
text | ) |
|
Sets the current text value displayed. Does not call onTextChanged or onValueChanged.
◆ ValidateNewText()
bool open3d::gui::TextEdit::ValidateNewText |
( |
const char * |
text | ) |
|
|
protectedvirtual |
Returns true if new text is valid. Otherwise call SetText() with a valid value and return false.
The documentation for this class was generated from the following files: