mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 11:31:49 +00:00
TextBox new properties
This commit is contained in:
parent
cae0ceb8a3
commit
c68e89038f
5 changed files with 55 additions and 0 deletions
|
|
@ -355,6 +355,22 @@ void TextBox::setTextValidator(wstringchecker validator) {
|
|||
this->validator = validator;
|
||||
}
|
||||
|
||||
void TextBox::setFocusedColor(glm::vec4 color) {
|
||||
this->focusedColor = color;
|
||||
}
|
||||
|
||||
glm::vec4 TextBox::getFocusedColor() const {
|
||||
return focusedColor;
|
||||
}
|
||||
|
||||
void TextBox::setErrorColor(glm::vec4 color) {
|
||||
this->invalidColor = color;
|
||||
}
|
||||
|
||||
glm::vec4 TextBox::getErrorColor() const {
|
||||
return invalidColor;
|
||||
}
|
||||
|
||||
std::wstring TextBox::getText() const {
|
||||
if (input.empty())
|
||||
return placeholder;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue