1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 01:37:35 +00:00

GTextEditor: Improvements to cursor rendering.

The view now scrolls along with you as you move the cursor around.
This commit is contained in:
Andreas Kling 2019-03-07 13:13:25 +01:00
parent dff57909a7
commit 1ac71d1fb1
4 changed files with 31 additions and 27 deletions

View file

@ -52,6 +52,8 @@ public:
void translate(int dx, int dy) { m_translation.move_by(dx, dy); }
void translate(const Point& delta) { m_translation.move_by(delta); }
Point translation() const { return m_translation; }
GraphicsBitmap* target() { return m_target.ptr(); }
private: