12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- //
- // RUBasePopup.cpp
- // red_utils
- //
- // Created by ZhengSong on 2023/6/9.
- //
- #include "RUBasePopup.h"
- #include "RUPopupMgr.h"
- NS_RU_BEGIN
- BasePopup::BasePopup()
- {
-
- }
- BasePopup::~BasePopup()
- {
- PopupMgr::getInstance()->checkPopupByDestruct(this);
- }
- void BasePopup::popup()
- {
- redutils::PopupMgr::getInstance()->openPopup(this);
- }
- void BasePopup::popupByQueue(int priority)
- {
- _priority = priority;
- redutils::PopupMgr::getInstance()->openPopupByQueue(this);
- }
- void BasePopup::_execCloseCb()
- {
- if (_closeCb) {
- _closeCb();
- _closeCb = nullptr;
- }
- }
- int BasePopup::_getPriority() const
- {
- return _priority;
- }
- const std::string& BasePopup::_getWindowName() const
- {
- return _windowName;
- }
- NS_RU_END
|