mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 04:21:50 +00:00
Merge remote-tracking branch 'upstream/main' into spawn_objects
This commit is contained in:
commit
7c6b52cb2a
5 changed files with 47 additions and 7 deletions
|
|
@ -361,10 +361,18 @@ std::wstring TextBox::getText() const {
|
|||
return input;
|
||||
}
|
||||
|
||||
void TextBox::setText(std::wstring value) {
|
||||
void TextBox::setText(const std::wstring value) {
|
||||
this->input = value;
|
||||
}
|
||||
|
||||
std::wstring TextBox::getPlaceholder() const {
|
||||
return placeholder;
|
||||
}
|
||||
|
||||
void TextBox::setPlaceholder(const std::wstring& placeholder) {
|
||||
this->placeholder = placeholder;
|
||||
}
|
||||
|
||||
// ============================== InputBindBox ================================
|
||||
InputBindBox::InputBindBox(Binding& binding, glm::vec4 padding)
|
||||
: Panel(glm::vec2(100,32), padding, 0),
|
||||
|
|
|
|||
|
|
@ -122,6 +122,8 @@ namespace gui {
|
|||
virtual std::wstring getText() const;
|
||||
/* Set TextBox content text */
|
||||
virtual void setText(std::wstring value);
|
||||
virtual std::wstring getPlaceholder() const;
|
||||
virtual void setPlaceholder(const std::wstring&);
|
||||
virtual bool validate();
|
||||
virtual void setValid(bool valid);
|
||||
virtual bool isValid() const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue