summaryrefslogtreecommitdiff
path: root/Libraries/LibGfx/Painter.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-08-23 23:39:27 +0200
committerAndreas Kling <kling@serenityos.org>2020-08-23 23:53:45 +0200
commit03c576acc54af4527887b8390e2a4dcb6c9b4dc9 (patch)
tree1157e3616c2c147fd2672eee61071bdeed89b9b1 /Libraries/LibGfx/Painter.h
parent59172e271493045910e6d1f8c17f1ca19099c578 (diff)
downloadserenity-03c576acc54af4527887b8390e2a4dcb6c9b4dc9.zip
LibGUI+LibGfx: Implement upside-down appearance for bottom-side tabs
GUI::TabWidget has long has a TabPosition::Bottom option, but we still rendered the tab buttons the same as TabPosition::Top. This patch implements a custom look for bottom-side tabs. I've done my best to match the look of the top-side ones, but there might be some improvements we can make here. :^)
Diffstat (limited to 'Libraries/LibGfx/Painter.h')
-rw-r--r--Libraries/LibGfx/Painter.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Libraries/LibGfx/Painter.h b/Libraries/LibGfx/Painter.h
index ee84db265a..1febfd2068 100644
--- a/Libraries/LibGfx/Painter.h
+++ b/Libraries/LibGfx/Painter.h
@@ -64,6 +64,7 @@ public:
void draw_triangle(const IntPoint&, const IntPoint&, const IntPoint&, Color);
void draw_ellipse_intersecting(const IntRect&, Color, int thickness = 1);
void set_pixel(const IntPoint&, Color);
+ void set_pixel(int x, int y, Color color) { set_pixel({ x, y }, color); }
void draw_line(const IntPoint&, const IntPoint&, Color, int thickness = 1, LineStyle style = LineStyle::Solid);
void draw_quadratic_bezier_curve(const IntPoint& control_point, const IntPoint&, const IntPoint&, Color, int thickness = 1, LineStyle style = LineStyle::Solid);
void draw_elliptical_arc(const IntPoint& p1, const IntPoint& p2, const IntPoint& center, const FloatPoint& radii, float x_axis_rotation, float theta_1, float theta_delta, Color, int thickness = 1, LineStyle style = LineStyle::Solid);