mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 07:36:50 +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:
@@ -1,5 +1,5 @@
|
||||
#include "GCheckBox.h"
|
||||
#include <SharedGraphics/Painter.h>
|
||||
#include <LibGUI/GPainter.h>
|
||||
#include <SharedGraphics/CharacterBitmap.h>
|
||||
#include <Kernel/KeyCode.h>
|
||||
|
||||
@@ -54,7 +54,7 @@ void GCheckBox::set_checked(bool b)
|
||||
|
||||
void GCheckBox::paint_event(GPaintEvent& event)
|
||||
{
|
||||
Painter painter(*this);
|
||||
GPainter painter(*this);
|
||||
painter.set_clip_rect(event.rect());
|
||||
|
||||
auto text_rect = rect();
|
||||
|
||||
Reference in New Issue
Block a user