ladybird/LibGUI/GStyle.h
Andreas Kling d353c7c3d6 LibGUI: Support different button styles.
I want to try an MS Office 97 "CoolBar" inspired look for my toolbars.
This is only the painting support, we still need hover events to implement
the actual effect.
2019-02-20 09:22:38 +01:00

17 lines
274 B
C++

#pragma once
class Painter;
class Rect;
enum class GButtonStyle { Normal, CoolBar };
class GStyle {
public:
static GStyle& the();
void paint_button(Painter& painter, const Rect& rect, GButtonStyle, bool pressed, bool hovered = false);
private:
GStyle();
};