mirror of
https://github.com/RGBCube/serenity
synced 2025-05-19 17:45:08 +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:
parent
2d39da5405
commit
c5bd9d4ed1
337 changed files with 5400 additions and 4816 deletions
|
@ -28,21 +28,24 @@
|
|||
#include <LibGUI/GFrame.h>
|
||||
#include <LibGUI/GPainter.h>
|
||||
|
||||
GFrame::GFrame(GWidget* parent)
|
||||
: GWidget(parent)
|
||||
namespace GUI {
|
||||
|
||||
Frame::Frame(Widget* parent)
|
||||
: Widget(parent)
|
||||
{
|
||||
}
|
||||
|
||||
GFrame::~GFrame()
|
||||
Frame::~Frame()
|
||||
{
|
||||
}
|
||||
|
||||
void GFrame::paint_event(GPaintEvent& event)
|
||||
void Frame::paint_event(PaintEvent& event)
|
||||
{
|
||||
if (m_shape == FrameShape::NoFrame)
|
||||
return;
|
||||
|
||||
GPainter painter(*this);
|
||||
Painter painter(*this);
|
||||
painter.add_clip_rect(event.rect());
|
||||
StylePainter::paint_frame(painter, rect(), palette(), m_shape, m_shadow, m_thickness, spans_entire_window_horizontally());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue