mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:38:11 +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/Object.cpp
Normal file
23
Widgets/Object.cpp
Normal file
|
@ -0,0 +1,23 @@
|
|||
#include "Object.h"
|
||||
#include "Event.h"
|
||||
#include <AK/Assertions.h>
|
||||
|
||||
Object::Object(Object* parent)
|
||||
: m_parent(parent)
|
||||
{
|
||||
}
|
||||
|
||||
Object::~Object()
|
||||
{
|
||||
}
|
||||
|
||||
void Object::event(Event& event)
|
||||
{
|
||||
switch (event.type()) {
|
||||
case Event::Invalid:
|
||||
ASSERT_NOT_REACHED();
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue