diff options
author | crupest <crupest@outlook.com> | 2022-01-17 22:55:09 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-01-17 22:55:09 +0800 |
commit | 67dd012c0f49898f1734c46d3bb264f59d056a8e (patch) | |
tree | 780dc9c50868a8e7b89e68b463a60745fce72ae9 /include/cru/ui/components | |
parent | 81f7d5faaaf79149070a901a4f299aee70c46379 (diff) | |
download | cru-67dd012c0f49898f1734c46d3bb264f59d056a8e.tar.gz cru-67dd012c0f49898f1734c46d3bb264f59d056a8e.tar.bz2 cru-67dd012c0f49898f1734c46d3bb264f59d056a8e.zip |
...
Diffstat (limited to 'include/cru/ui/components')
-rw-r--r-- | include/cru/ui/components/Component.hpp | 2 | ||||
-rw-r--r-- | include/cru/ui/components/Menu.hpp | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/include/cru/ui/components/Component.hpp b/include/cru/ui/components/Component.hpp index 0dfc587b..4cbc3791 100644 --- a/include/cru/ui/components/Component.hpp +++ b/include/cru/ui/components/Component.hpp @@ -5,7 +5,7 @@ namespace cru::ui::components { // In destructor, component should check all owned controls whether it is // attached to window, if not, destroy them, otherwise it is host's duty to // destroy them. -class Component : public Object { +class CRU_UI_API Component : public Object { public: Component() = default; diff --git a/include/cru/ui/components/Menu.hpp b/include/cru/ui/components/Menu.hpp index b409c4c0..9b60eb02 100644 --- a/include/cru/ui/components/Menu.hpp +++ b/include/cru/ui/components/Menu.hpp @@ -11,7 +11,7 @@ #include <vector> namespace cru::ui::components { -class MenuItem : public Component { +class CRU_UI_API MenuItem : public Component { public: MenuItem(); explicit MenuItem(String text); @@ -36,7 +36,7 @@ class MenuItem : public Component { std::function<void()> on_click_; }; -class Menu : public Component { +class CRU_UI_API Menu : public Component { public: Menu(); @@ -73,7 +73,7 @@ class Menu : public Component { std::function<void(Index)> on_item_click_; }; -class PopupMenu : public Component { +class CRU_UI_API PopupMenu : public Component { public: explicit PopupMenu(controls::Control* attached_control = nullptr); |