mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 04:27:45 +00:00
LibCore: Add CEvent and make LibGUI/GEvent inherit from it.
This commit is contained in:
parent
696ada2810
commit
b8062f69d8
31 changed files with 98 additions and 159 deletions
12
LibCore/CEvent.cpp
Normal file
12
LibCore/CEvent.cpp
Normal file
|
@ -0,0 +1,12 @@
|
|||
#include <LibCore/CEvent.h>
|
||||
#include <LibGUI/GObject.h>
|
||||
|
||||
CChildEvent::CChildEvent(Type type, GObject& child)
|
||||
: CEvent(type)
|
||||
, m_child(child.make_weak_ptr())
|
||||
{
|
||||
}
|
||||
|
||||
CChildEvent::~CChildEvent()
|
||||
{
|
||||
}
|
|
@ -1,7 +1,6 @@
|
|||
OBJS = \
|
||||
CElapsedTimer.o
|
||||
|
||||
LIBS =
|
||||
CElapsedTimer.o \
|
||||
CEvent.o
|
||||
|
||||
LIBRARY = libcore.a
|
||||
STANDARD_FLAGS = -std=c++17 -Wno-sized-deallocation
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue