1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:48:10 +00:00

LibGUI: Put all classes in the GUI namespace and remove the leading G

This took me a moment. Welcome to the new world of GUI::Widget! :^)
This commit is contained in:
Andreas Kling 2020-02-02 15:07:41 +01:00
parent 2d39da5405
commit c5bd9d4ed1
337 changed files with 5400 additions and 4816 deletions

View file

@ -29,17 +29,19 @@
#include <LibDraw/Palette.h>
#include <LibDraw/Rect.h>
class GPainter;
namespace GUI {
class Painter;
}
class RenderingContext {
public:
explicit RenderingContext(GPainter& painter, const Palette& palette)
explicit RenderingContext(GUI::Painter& painter, const Palette& palette)
: m_painter(painter)
, m_palette(palette)
{
}
GPainter& painter() const { return m_painter; }
GUI::Painter& painter() const { return m_painter; }
const Palette& palette() const { return m_palette; }
bool should_show_line_box_borders() const { return m_should_show_line_box_borders; }
@ -49,7 +51,7 @@ public:
void set_viewport_rect(const Rect& rect) { m_viewport_rect = rect; }
private:
GPainter& m_painter;
GUI::Painter& m_painter;
Palette m_palette;
Rect m_viewport_rect;
bool m_should_show_line_box_borders { false };