summaryrefslogtreecommitdiff
path: root/LibGUI/GEvent.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-03-15 16:12:06 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-03-15 16:12:06 +0100
commit497300c492c6272df14b0190f19848a25ab6b0de (patch)
treef6bbba43100045cde823576614ffc518af22bb01 /LibGUI/GEvent.cpp
parentab92252ee641cb5c6eb4f188b3ad403bb4db5caa (diff)
downloadserenity-497300c492c6272df14b0190f19848a25ab6b0de.zip
LibGUI: Add a GStackWidget for many widgets sharing a single location.
Call set_active_widget(GWidget*) to put a new widget on top.
Diffstat (limited to 'LibGUI/GEvent.cpp')
-rw-r--r--LibGUI/GEvent.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/LibGUI/GEvent.cpp b/LibGUI/GEvent.cpp
new file mode 100644
index 0000000000..4f6b0b2dfb
--- /dev/null
+++ b/LibGUI/GEvent.cpp
@@ -0,0 +1,12 @@
+#include <LibGUI/GEvent.h>
+#include <LibGUI/GObject.h>
+
+GChildEvent::GChildEvent(Type type, GObject& child)
+ : GEvent(type)
+ , m_child(child.make_weak_ptr())
+{
+}
+
+GChildEvent::~GChildEvent()
+{
+}