diff options
author | Andreas Kling <awesomekling@gmail.com> | 2018-10-11 01:48:09 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2018-10-11 01:48:09 +0200 |
commit | f337616741b690feb36ed8e104df85ed5117daaa (patch) | |
tree | ddf346dd5c7f3871d56f8457e3a496e829ae51ae /Widgets/Painter.h | |
parent | aee66e011954b4a071edfca0e5ebf124da5f0ffb (diff) | |
download | serenity-f337616741b690feb36ed8e104df85ed5117daaa.zip |
More hacking on Widgets.
Diffstat (limited to 'Widgets/Painter.h')
-rw-r--r-- | Widgets/Painter.h | 3 |
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; |