1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-19 20:25:07 +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:
Andreas Kling 2019-03-28 17:19:56 +01:00
parent 326c6fd607
commit 9fa21fa585
27 changed files with 75 additions and 78 deletions

View file

@ -1,7 +1,7 @@
#include <LibGUI/GItemView.h>
#include <LibGUI/GModel.h>
#include <LibGUI/GScrollBar.h>
#include <SharedGraphics/Painter.h>
#include <LibGUI/GPainter.h>
#include <Kernel/KeyCode.h>
GItemView::GItemView(GWidget* parent)
@ -98,7 +98,7 @@ void GItemView::paint_event(GPaintEvent& event)
{
GFrame::paint_event(event);
Painter painter(*this);
GPainter painter(*this);
painter.set_clip_rect(widget_inner_rect());
painter.set_clip_rect(event.rect());
painter.fill_rect(event.rect(), Color::White);