summaryrefslogtreecommitdiff
path: root/SharedGraphics/Painter.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-01-20 04:49:48 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-01-20 04:49:48 +0100
commitb91479d9b90e1c6dd33c83d0a2cfc6ba94d1464e (patch)
treec837667235d77a12699fecf73c991cda69bd8dd7 /SharedGraphics/Painter.h
parenta026da47e7a7c6e072e068be6b66d3c76962cedf (diff)
downloadserenity-b91479d9b90e1c6dd33c83d0a2cfc6ba94d1464e.zip
Rename all the LibGUI classes to GClassName.
Diffstat (limited to 'SharedGraphics/Painter.h')
-rw-r--r--SharedGraphics/Painter.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/SharedGraphics/Painter.h b/SharedGraphics/Painter.h
index adf41a3805..5c66faf3a5 100644
--- a/SharedGraphics/Painter.h
+++ b/SharedGraphics/Painter.h
@@ -9,12 +9,17 @@
class CharacterBitmap;
class GraphicsBitmap;
class Font;
-class Widget;
-class Window;
+
+#ifdef LIBGUI
+class GWidget;
+class GWindow;
+#endif
class Painter {
public:
- explicit Painter(Widget&);
+#ifdef LIBGUI
+ explicit Painter(GWidget&);
+#endif
explicit Painter(GraphicsBitmap&);
~Painter();
void fill_rect(const Rect&, Color);
@@ -42,6 +47,8 @@ private:
Point m_translation;
Rect m_clip_rect;
RetainPtr<GraphicsBitmap> m_target;
- Window* m_window { nullptr };
+#ifdef LIBGUI
+ GWindow* m_window { nullptr };
+#endif
DrawOp m_draw_op { DrawOp::Copy };
};