aboutsummaryrefslogtreecommitdiff
path: root/include/GlobalContextMenu.hpp
blob: ab45e50eab3c0b09ef481d2d5ffec202137ea55f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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);
    };
}