mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-06 17:41:04 +00:00
Factorize more guiEditBoxes code (#10789)
* Factorize more guiEditBoxes code
This commit is contained in:
parent
1946835ee8
commit
4b01282821
6 changed files with 104 additions and 182 deletions
|
@ -38,12 +38,6 @@ namespace gui
|
|||
//! Updates the absolute position, splits text if required
|
||||
virtual void updateAbsolutePosition();
|
||||
|
||||
//! Writes attributes of the element.
|
||||
virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options) const;
|
||||
|
||||
//! Reads attributes of the element
|
||||
virtual void deserializeAttributes(io::IAttributes* in, io::SAttributeReadWriteOptions* options);
|
||||
|
||||
virtual void setCursorChar(const wchar_t cursorChar) {}
|
||||
|
||||
virtual wchar_t getCursorChar() const { return L'|'; }
|
||||
|
@ -57,8 +51,7 @@ namespace gui
|
|||
virtual void breakText();
|
||||
//! sets the area of the given line
|
||||
virtual void setTextRect(s32 line);
|
||||
//! adds a letter to the edit box
|
||||
virtual void inputChar(wchar_t c);
|
||||
|
||||
//! calculates the current scroll position
|
||||
void calculateScrollPos();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue