summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/Event.h
diff options
context:
space:
mode:
authorTimur Sultanov <SultanovTS@yandex.ru>2022-01-19 14:44:56 +0300
committerAndreas Kling <kling@serenityos.org>2022-02-03 00:47:22 +0100
commitb9c558f6c6e4adb3e10d9bc94dcdbec793f5bc23 (patch)
tree67fdf26d250f5a6bce4339ff03ba5c706f6d5311 /Userland/Libraries/LibGUI/Event.h
parent68a01f0e273675ba225e29c1522d997a5d898e61 (diff)
downloadserenity-b9c558f6c6e4adb3e10d9bc94dcdbec793f5bc23.zip
WindowServer+Keymap+LibGUI: Add widget to display current keymap
Diffstat (limited to 'Userland/Libraries/LibGUI/Event.h')
-rw-r--r--Userland/Libraries/LibGUI/Event.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGUI/Event.h b/Userland/Libraries/LibGUI/Event.h
index 517650493e..b386858195 100644
--- a/Userland/Libraries/LibGUI/Event.h
+++ b/Userland/Libraries/LibGUI/Event.h
@@ -67,6 +67,7 @@ public:
WM_SuperKeyPressed,
WM_SuperSpaceKeyPressed,
WM_WorkspaceChanged,
+ WM_KeymapChanged,
__End_WM_Events,
};
@@ -228,6 +229,20 @@ private:
const unsigned m_current_column;
};
+class WMKeymapChangedEvent : public WMEvent {
+public:
+ explicit WMKeymapChangedEvent(int client_id, String const& keymap)
+ : WMEvent(Event::Type::WM_KeymapChanged, client_id, 0)
+ , m_keymap(keymap)
+ {
+ }
+
+ String const& keymap() const { return m_keymap; }
+
+private:
+ const String m_keymap;
+};
+
class MultiPaintEvent final : public Event {
public:
explicit MultiPaintEvent(Vector<Gfx::IntRect, 32> rects, Gfx::IntSize const& window_size)