GUIFramework 1.1.0
Framework for desktop GUI applications in C++.
Loading...
Searching...
No Matches
MenuItem.h
Go to the documentation of this file.
1#pragma once
2
4
5namespace gui_framework
6{
9 {
10 private:
11 std::function<void()> onClick;
12 std::string functionName;
13 std::string moduleName;
14
15 public:
16 MenuItem(const std::wstring& text, const std::function<void()>& onClick);
17
23 MenuItem(const std::wstring& text, const std::string& functionName, const std::string& moduleName);
24
25 void processMessage() override;
26
27 json::JSONBuilder getStructure() const override;
28
29 ~MenuItem() = default;
30 };
31}
#define GUI_FRAMEWORK_API
Base class for all menu items.
Definition BaseMenuItem.h:9
Standard menu item.
Definition MenuItem.h:9
MenuItem(const std::wstring &text, const std::string &functionName, const std::string &moduleName)
MenuItem(const std::wstring &text, const std::function< void()> &onClick)