1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:08:11 +00:00

More work on the variable-width font support.

Katica is now the default system font, and it looks quite nice. :^)
I'm gonna need to refine the GTextBox movement stuff eventually,
but it works well-enough for basic editing now.
This commit is contained in:
Andreas Kling 2019-03-06 14:06:40 +01:00
parent e53cef02d5
commit 66a5ddd94a
12 changed files with 125 additions and 30 deletions

View file

@ -22,12 +22,17 @@ private:
virtual void timer_event(GTimerEvent&) override;
virtual void focusin_event(GEvent&) override;
virtual void focusout_event(GEvent&) override;
virtual void resize_event(GResizeEvent&) override;
virtual bool accepts_focus() const override { return true; }
Point cursor_content_position() const;
Rect visible_content_rect() const;
void handle_backspace();
void scroll_cursor_into_view(HorizontalDirection);
String m_text;
int m_cursor_position { 0 };
int m_scroll_offset { 0 };
bool m_cursor_blink_state { false };
};