mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:48:10 +00:00
GTextEditor: Allow moving the cursor by clicking.
This commit is contained in:
parent
9997992907
commit
a21ecd440a
2 changed files with 9 additions and 5 deletions
|
@ -45,6 +45,7 @@ public:
|
|||
int line_height() const { return font().glyph_height() + m_line_spacing; }
|
||||
int padding() const { return 3; }
|
||||
GTextPosition cursor() const { return m_cursor; }
|
||||
int glyph_width() const { return font().glyph_width('x'); }
|
||||
|
||||
private:
|
||||
virtual void paint_event(GPaintEvent&) override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue