mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:37:35 +00:00
LibGUI: Let GUI applications create an inspectable EventLoop
GUI applications automatically have EventLoops created for them via GUI::Application; however before this commit it was not possible to make the application event loop inspectable. This exposes a third optional argument to GUI::Application which allows one to make the application event loop inspectable.
This commit is contained in:
parent
2e3a5b884c
commit
6162e78c7f
2 changed files with 4 additions and 3 deletions
|
@ -10,6 +10,7 @@
|
|||
#include <AK/OwnPtr.h>
|
||||
#include <AK/String.h>
|
||||
#include <AK/WeakPtr.h>
|
||||
#include <LibCore/EventLoop.h>
|
||||
#include <LibCore/Object.h>
|
||||
#include <LibGUI/Forward.h>
|
||||
#include <LibGUI/Shortcut.h>
|
||||
|
@ -79,7 +80,7 @@ public:
|
|||
Function<void(Action&)> on_action_leave;
|
||||
|
||||
private:
|
||||
Application(int argc, char** argv);
|
||||
Application(int argc, char** argv, Core::EventLoop::MakeInspectable = Core::EventLoop::MakeInspectable::No);
|
||||
|
||||
virtual void event(Core::Event&) override;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue