summaryrefslogtreecommitdiff
path: root/Widgets/Painter.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2018-10-11 01:48:09 +0200
committerAndreas Kling <awesomekling@gmail.com>2018-10-11 01:48:09 +0200
commitf337616741b690feb36ed8e104df85ed5117daaa (patch)
treeddf346dd5c7f3871d56f8457e3a496e829ae51ae /Widgets/Painter.h
parentaee66e011954b4a071edfca0e5ebf124da5f0ffb (diff)
downloadserenity-f337616741b690feb36ed8e104df85ed5117daaa.zip
More hacking on Widgets.
Diffstat (limited to 'Widgets/Painter.h')
-rw-r--r--Widgets/Painter.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Widgets/Painter.h b/Widgets/Painter.h
index 671d928c0b..524548b0af 100644
--- a/Widgets/Painter.h
+++ b/Widgets/Painter.h
@@ -9,10 +9,11 @@ class Widget;
class Painter {
public:
+ enum class TextAlignment { TopLeft, Center };
explicit Painter(Widget&);
~Painter();
void fillRect(const Rect&, Color);
- void drawText(const Point&, const String&, const Color& = Color());
+ void drawText(const Rect&, const String&, TextAlignment = TextAlignment::TopLeft, const Color& = Color());
private:
Widget& m_widget;