1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 13:27:35 +00:00

LibGUI: Make it possible for GButton to be checkable.

This commit is contained in:
Andreas Kling 2019-04-04 13:18:27 +02:00
parent 5ec121e194
commit 19eb814850
4 changed files with 28 additions and 11 deletions

View file

@ -7,6 +7,6 @@ enum class ButtonStyle { Normal, CoolBar, OldNormal };
class StylePainter {
public:
static void paint_button(Painter&, const Rect&, ButtonStyle, bool pressed, bool hovered = false);
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);
};