mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 12:37:45 +00:00
Start working on a Downloader app and backing classes in LibGUI.
LibGUI is slowly becoming LibKitchensink but I'm okay with this for now.
This commit is contained in:
parent
c7365a00f8
commit
8f30657390
21 changed files with 375 additions and 1 deletions
|
@ -5,6 +5,7 @@
|
|||
#include <AK/AKString.h>
|
||||
#include <AK/Types.h>
|
||||
#include <AK/WeakPtr.h>
|
||||
#include <AK/Function.h>
|
||||
#include <Kernel/KeyCode.h>
|
||||
#include <LibGUI/GWindowType.h>
|
||||
|
||||
|
@ -28,6 +29,7 @@ public:
|
|||
KeyUp,
|
||||
Timer,
|
||||
DeferredDestroy,
|
||||
DeferredInvoke,
|
||||
WindowEntered,
|
||||
WindowLeft,
|
||||
WindowBecameInactive,
|
||||
|
@ -55,6 +57,19 @@ private:
|
|||
Type m_type { Invalid };
|
||||
};
|
||||
|
||||
class GDeferredInvocationEvent : public GEvent {
|
||||
friend class GEventLoop;
|
||||
public:
|
||||
GDeferredInvocationEvent(Function<void(GObject&)> invokee)
|
||||
: GEvent(GEvent::Type::DeferredInvoke)
|
||||
, m_invokee(move(invokee))
|
||||
{
|
||||
}
|
||||
|
||||
private:
|
||||
Function<void(GObject&)> m_invokee;
|
||||
};
|
||||
|
||||
class GWMEvent : public GEvent {
|
||||
public:
|
||||
GWMEvent(Type type, int client_id, int window_id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue