1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:17:36 +00:00

Rename all the LibGUI classes to GClassName.

This commit is contained in:
Andreas Kling 2019-01-20 04:49:48 +01:00
parent a026da47e7
commit b91479d9b9
33 changed files with 623 additions and 581 deletions

34
LibGUI/GEventLoop.h Normal file
View file

@ -0,0 +1,34 @@
#pragma once
#include "GEvent.h"
#include <AK/OwnPtr.h>
#include <AK/Vector.h>
class GObject;
class GEventLoop {
public:
GEventLoop();
~GEventLoop();
int exec();
void postEvent(GObject* receiver, OwnPtr<GEvent>&&);
static GEventLoop& main();
static void initialize();
bool running() const { return m_running; }
private:
void waitForEvent();
struct QueuedEvent {
GObject* receiver { nullptr };
OwnPtr<GEvent> event;
};
Vector<QueuedEvent> m_queuedEvents;
bool m_running { false };
};