mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 08:07:34 +00:00
Rename all the LibGUI classes to GClassName.
This commit is contained in:
parent
a026da47e7
commit
b91479d9b9
33 changed files with 623 additions and 581 deletions
|
@ -5,7 +5,7 @@
|
|||
#include <AK/StdLibExtras.h>
|
||||
|
||||
#ifdef LIBGUI
|
||||
#include <LibGUI/Widget.h>
|
||||
#include <LibGUI/GWidget.h>
|
||||
#endif
|
||||
|
||||
#define DEBUG_WIDGET_UNDERDRAW
|
||||
|
@ -18,7 +18,7 @@ Painter::Painter(GraphicsBitmap& bitmap)
|
|||
}
|
||||
|
||||
#ifdef LIBGUI
|
||||
Painter::Painter(Widget& widget)
|
||||
Painter::Painter(GWidget& widget)
|
||||
: m_font(&widget.font())
|
||||
{
|
||||
m_target = widget.backing();
|
||||
|
|
|
@ -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 };
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue