mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 19:35:09 +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
|
@ -2,7 +2,7 @@
|
|||
#include <LibGUI/GStyle.h>
|
||||
#include <SharedGraphics/CharacterBitmap.h>
|
||||
#include <SharedGraphics/GraphicsBitmap.h>
|
||||
#include <SharedGraphics/Painter.h>
|
||||
#include <LibGUI/GPainter.h>
|
||||
|
||||
//#define GUTTER_DOES_PAGEUP_PAGEDOWN
|
||||
|
||||
|
@ -185,7 +185,7 @@ Rect GScrollBar::scrubber_rect() const
|
|||
|
||||
void GScrollBar::paint_event(GPaintEvent& event)
|
||||
{
|
||||
Painter painter(*this);
|
||||
GPainter painter(*this);
|
||||
painter.set_clip_rect(event.rect());
|
||||
|
||||
painter.fill_rect(rect(), Color(164, 164, 164));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue