mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:37:35 +00:00
Move LibGUI/GStyle to SharedGraphics/StylePainter.
I want to paint some buttons in WindowServer where we don't have LibGUI.
This commit is contained in:
parent
d12b6b8677
commit
c7ab643883
13 changed files with 47 additions and 46 deletions
17
SharedGraphics/StylePainter.h
Normal file
17
SharedGraphics/StylePainter.h
Normal file
|
@ -0,0 +1,17 @@
|
|||
#pragma once
|
||||
|
||||
class Painter;
|
||||
class Rect;
|
||||
|
||||
enum class ButtonStyle { Normal, CoolBar, OldNormal };
|
||||
|
||||
class StylePainter {
|
||||
public:
|
||||
static StylePainter& the();
|
||||
|
||||
void paint_button(Painter&, const Rect&, ButtonStyle, bool pressed, bool hovered = false);
|
||||
void paint_surface(Painter&, const Rect&);
|
||||
|
||||
private:
|
||||
StylePainter();
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue