aboutsummaryrefslogtreecommitdiff
path: root/include/GlobalContextMenu.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/GlobalContextMenu.hpp')
-rw-r--r--include/GlobalContextMenu.hpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/GlobalContextMenu.hpp b/include/GlobalContextMenu.hpp
new file mode 100644
index 0000000..ab45e50
--- /dev/null
+++ b/include/GlobalContextMenu.hpp
@@ -0,0 +1,19 @@
+#pragma once
+
+#include "ContextMenu.hpp"
+#include <SFML/Window/Event.hpp>
+#include <SFML/Graphics/RenderWindow.hpp>
+
+namespace dchat
+{
+ class GlobalContextMenu
+ {
+ public:
+ static ContextMenu* getEditMessageContextMenu();
+ static void setClickEditMessageCallbackFunc(MenuItemClickCallbackFunc callbackFunc);
+ static void setClickDeleteMessageCallbackFunc(MenuItemClickCallbackFunc callbackFunc);
+
+ static void processEvent(const sf::Event &event);
+ static void draw(sf::RenderWindow &window);
+ };
+}