mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07: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
|
@ -20,7 +20,7 @@ public:
|
|||
|
||||
int exec();
|
||||
|
||||
void post_event(GObject& receiver, OwnPtr<GEvent>&&);
|
||||
void post_event(GObject& receiver, OwnPtr<CEvent>&&);
|
||||
|
||||
static GEventLoop& main();
|
||||
static GEventLoop& current();
|
||||
|
@ -66,7 +66,7 @@ private:
|
|||
|
||||
struct QueuedEvent {
|
||||
WeakPtr<GObject> receiver;
|
||||
OwnPtr<GEvent> event;
|
||||
OwnPtr<CEvent> event;
|
||||
};
|
||||
Vector<QueuedEvent> m_queued_events;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue