From 67dd012c0f49898f1734c46d3bb264f59d056a8e Mon Sep 17 00:00:00 2001 From: crupest Date: Mon, 17 Jan 2022 22:55:09 +0800 Subject: ... --- include/cru/ui/components/Component.hpp | 2 +- include/cru/ui/components/Menu.hpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'include/cru/ui/components') 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 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 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 on_item_click_; }; -class PopupMenu : public Component { +class CRU_UI_API PopupMenu : public Component { public: explicit PopupMenu(controls::Control* attached_control = nullptr); -- cgit v1.2.3