diff options
author | crupest <crupest@outlook.com> | 2021-12-21 15:36:00 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-12-21 15:36:00 +0800 |
commit | 63b39863b9d567068480f9c1d59177c92a8c6169 (patch) | |
tree | 06485cd94ca299bcc0d09fdc23fc9a73cad38eab /include/cru/ui/components/Menu.hpp | |
parent | 061f9ad04131febcc66975fd3d95b332789da52f (diff) | |
download | cru-63b39863b9d567068480f9c1d59177c92a8c6169.tar.gz cru-63b39863b9d567068480f9c1d59177c92a8c6169.tar.bz2 cru-63b39863b9d567068480f9c1d59177c92a8c6169.zip |
...
Diffstat (limited to 'include/cru/ui/components/Menu.hpp')
-rw-r--r-- | include/cru/ui/components/Menu.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/cru/ui/components/Menu.hpp b/include/cru/ui/components/Menu.hpp index b0075574..b409c4c0 100644 --- a/include/cru/ui/components/Menu.hpp +++ b/include/cru/ui/components/Menu.hpp @@ -88,8 +88,14 @@ class PopupMenu : public Component { controls::Popup* GetPopup() { return popup_; } Menu* GetMenu() { return menu_; } + // position relative to screen left top. void SetPosition(const Point& position); void Show(); + // position relative to screen left top. + void Show(const Point& position) { + SetPosition(position); + Show(); + } void Close(); private: |