mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:57:35 +00:00
Start working on a Widgets library.
This commit is contained in:
parent
a181a8f6e7
commit
8c84f9749e
18 changed files with 594 additions and 0 deletions
23
Widgets/RootWidget.cpp
Normal file
23
Widgets/RootWidget.cpp
Normal file
|
@ -0,0 +1,23 @@
|
|||
#include "RootWidget.h"
|
||||
#include <cstdio>
|
||||
|
||||
RootWidget::RootWidget()
|
||||
{
|
||||
}
|
||||
|
||||
RootWidget::~RootWidget()
|
||||
{
|
||||
}
|
||||
|
||||
void RootWidget::onPaint(PaintEvent& event)
|
||||
{
|
||||
printf("RootWidget::onPaint\n");
|
||||
Widget::onPaint(event);
|
||||
}
|
||||
|
||||
void RootWidget::onMouseMove(MouseEvent& event)
|
||||
{
|
||||
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