mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:37:35 +00:00
More hacking on Widgets.
This commit is contained in:
parent
c37ded0ae4
commit
a4491e9630
9 changed files with 150 additions and 2 deletions
|
@ -1,5 +1,6 @@
|
|||
#include "RootWidget.h"
|
||||
#include "Painter.h"
|
||||
#include "WindowManager.h"
|
||||
#include <cstdio>
|
||||
|
||||
RootWidget::RootWidget()
|
||||
|
@ -12,15 +13,16 @@ RootWidget::~RootWidget()
|
|||
|
||||
void RootWidget::onPaint(PaintEvent& event)
|
||||
{
|
||||
printf("RootWidget::onPaint\n");
|
||||
//printf("RootWidget::onPaint\n");
|
||||
Painter painter(*this);
|
||||
painter.fillRect(Rect(0, 0, 800, 600), Color(0x40, 0x40, 0x40));
|
||||
WindowManager::the().paintWindowFrames();
|
||||
Widget::onPaint(event);
|
||||
}
|
||||
|
||||
void RootWidget::onMouseMove(MouseEvent& event)
|
||||
{
|
||||
printf("RootWidget::onMouseMove: x=%d, y=%d\n", event.x(), event.y());
|
||||
//printf("RootWidget::onMouseMove: x=%d, y=%d\n", event.x(), event.y());
|
||||
Widget::onMouseMove(event);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue