mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:37:35 +00:00
Intense hacking on Widgets.
This commit is contained in:
parent
8c84f9749e
commit
6f37429f57
20 changed files with 290 additions and 5 deletions
|
@ -1,4 +1,5 @@
|
|||
#include "RootWidget.h"
|
||||
#include "Painter.h"
|
||||
#include <cstdio>
|
||||
|
||||
RootWidget::RootWidget()
|
||||
|
@ -12,6 +13,8 @@ RootWidget::~RootWidget()
|
|||
void RootWidget::onPaint(PaintEvent& event)
|
||||
{
|
||||
printf("RootWidget::onPaint\n");
|
||||
Painter painter(*this);
|
||||
painter.fillRect(Rect(0, 0, 800, 600), Color(0x80, 0x80, 0x80));
|
||||
Widget::onPaint(event);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue