mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:07:36 +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
14
LibGUI/GStyle.h
Normal file
14
LibGUI/GStyle.h
Normal file
|
@ -0,0 +1,14 @@
|
|||
#pragma once
|
||||
|
||||
class Painter;
|
||||
class Rect;
|
||||
|
||||
class GStyle {
|
||||
public:
|
||||
static GStyle& the();
|
||||
|
||||
void paint_button(Painter& painter, const Rect& rect, bool pressed);
|
||||
|
||||
private:
|
||||
GStyle();
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue