mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-12-16 01:48:56 +08:00
Implementation of the selection in the text node
This commit is contained in:
committed by
ArthurSonzogni
parent
011b9a1426
commit
23a8c94bef
@@ -42,6 +42,15 @@ class Text : public Node {
|
||||
continue;
|
||||
}
|
||||
screen.PixelAt(x, y).character = cell;
|
||||
|
||||
if(screen.PixelAt(x, y).selectable == true)
|
||||
{
|
||||
if(screen.selection_region.Contain(x, y)) {
|
||||
screen.PixelAt(x, y).inverted ^= true;
|
||||
screen.selection_text += screen.PixelAt(x, y).character;
|
||||
}
|
||||
}
|
||||
|
||||
++x;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user