mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:27:45 +00:00
LibGUI: Share code for widget rendering styles in a GStyle class.
Since GScrollBar wants its internal buttons to look like GButtons, let's share the painting code between them.
This commit is contained in:
parent
9ea2131adf
commit
e354c08c98
9 changed files with 88 additions and 40 deletions
|
@ -50,6 +50,7 @@ public:
|
|||
Rect clip_rect() const { return m_clip_rect; }
|
||||
|
||||
void translate(int dx, int dy) { m_translation.move_by(dx, dy); }
|
||||
void translate(const Point& delta) { m_translation.move_by(delta); }
|
||||
|
||||
private:
|
||||
void set_pixel_with_draw_op(dword& pixel, const Color&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue