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:
parent
e53cef02d5
commit
66a5ddd94a
12 changed files with 125 additions and 30 deletions
|
@ -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 };
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue