mirror of
https://github.com/RGBCube/serenity
synced 2025-07-05 13:47:36 +00:00
LibGUI: Add a GPainter class that inherits from Painter.
This gets rid of the last little piece of LibGUI knowledge in Painter.
This commit is contained in:
parent
326c6fd607
commit
9fa21fa585
27 changed files with 75 additions and 78 deletions
|
@ -1,6 +1,6 @@
|
|||
#include <LibGUI/GFrame.h>
|
||||
#include <LibGUI/GStyle.h>
|
||||
#include <SharedGraphics/Painter.h>
|
||||
#include <LibGUI/GPainter.h>
|
||||
|
||||
GFrame::GFrame(GWidget* parent)
|
||||
: GWidget(parent)
|
||||
|
@ -16,7 +16,7 @@ void GFrame::paint_event(GPaintEvent& event)
|
|||
if (m_shape == Shape::NoFrame)
|
||||
return;
|
||||
|
||||
Painter painter(*this);
|
||||
GPainter painter(*this);
|
||||
painter.set_clip_rect(event.rect());
|
||||
|
||||
auto rect = this->rect();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue