1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 03:57:44 +00:00

FontEditor: Minor UI improvements.

- Implement focus for custom widgets.
- Add two live demo labels with an English pangram in upper/lower case.
This commit is contained in:
Andreas Kling 2019-02-04 15:37:23 +01:00
parent d7307c3119
commit d4aaba6bed
3 changed files with 47 additions and 19 deletions

View file

@ -46,6 +46,8 @@ public:
void clear_clip_rect();
Rect clip_rect() const { return m_clip_rect; }
void translate(int dx, int dy) { m_translation.move_by(dx, dy); }
private:
void set_pixel_with_draw_op(dword& pixel, const Color&);
void fill_rect_with_draw_op(const Rect&, Color);