mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 04:38:11 +00:00
LibGUI: Start working on a GTreeView class.
This commit is contained in:
parent
add38b3981
commit
12ec55ee74
3 changed files with 38 additions and 0 deletions
21
LibGUI/GTreeView.cpp
Normal file
21
LibGUI/GTreeView.cpp
Normal file
|
@ -0,0 +1,21 @@
|
|||
#include <LibGUI/GTreeView.h>
|
||||
#include <LibGUI/GPainter.h>
|
||||
|
||||
GTreeView::GTreeView(GWidget* parent)
|
||||
: GAbstractView(parent)
|
||||
{
|
||||
}
|
||||
|
||||
GTreeView::~GTreeView()
|
||||
{
|
||||
}
|
||||
|
||||
void GTreeView::paint_event(GPaintEvent& event)
|
||||
{
|
||||
GFrame::paint_event(event);
|
||||
GPainter painter(*this);
|
||||
painter.set_clip_rect(frame_inner_rect());
|
||||
painter.set_clip_rect(event.rect());
|
||||
|
||||
painter.fill_rect(event.rect(), Color::White);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue