mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
add 'keep-line-selection' textbox attribute
This commit is contained in:
parent
fbc9ceece4
commit
aba18ef836
3 changed files with 56 additions and 37 deletions
|
|
@ -62,6 +62,7 @@ namespace gui {
|
|||
bool editable = true;
|
||||
bool autoresize = false;
|
||||
bool showLineNumbers = false;
|
||||
bool keepLineSelection = false;
|
||||
std::string markup;
|
||||
std::string syntax;
|
||||
|
||||
|
|
@ -222,6 +223,9 @@ namespace gui {
|
|||
size_t getSelectionStart() const;
|
||||
size_t getSelectionEnd() const;
|
||||
|
||||
void setKeepLineSelection(bool flag);
|
||||
bool isKeepLineSelection() const;
|
||||
|
||||
/// @brief Set runnable called on textbox focus
|
||||
virtual void setOnEditStart(runnable oneditstart);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue