mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:37:34 +00:00
LibGUI: Move frame painting from GFrame to StylePainter.
This way it can be used by others who might not have a GFrame object.
This commit is contained in:
parent
e61dd994df
commit
4ab0cd5d4c
16 changed files with 93 additions and 88 deletions
|
@ -4,9 +4,12 @@ class Painter;
|
|||
class Rect;
|
||||
|
||||
enum class ButtonStyle { Normal, CoolBar, OldNormal };
|
||||
enum class FrameShadow { Plain, Raised, Sunken };
|
||||
enum class FrameShape { NoFrame, Container, Panel, VerticalLine, HorizontalLine };
|
||||
|
||||
class StylePainter {
|
||||
public:
|
||||
static void paint_button(Painter&, const Rect&, ButtonStyle, bool pressed, bool hovered = false, bool checked = false);
|
||||
static void paint_surface(Painter&, const Rect&, bool paint_vertical_lines = true);
|
||||
static void paint_frame(Painter&, const Rect&, FrameShape, FrameShadow, int thickness, bool skip_vertical_lines = false);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue