123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- //
- // RUReboltPopupLayer.h
- //
- // Created by ZhengSong on 2023/6/14.
- //
- //没有自定义数据的通用弹窗
- #ifndef RUReboltPopupLayer_h
- #define RUReboltPopupLayer_h
- #include "RUDefine.h"
- #include "RUReboltLayer.h"
- #include "RUBasePopup.h"
- NS_RU_BEGIN
- class ReboltPopupLayer final : public redutils::BasePopup
- {
- public:
- ReboltPopupLayer();
- ~ReboltPopupLayer();
-
- /*
- 作用:创建一个rebolt弹窗页面
- 参数:windowName: 弹窗名字
- redreamName: redream文件名
- closeCb: 窗口关闭回调
- notifyCallback: rebot的通知处理
- */
- static ReboltPopupLayer * create(const std::string& windowName,
- const std::string& redreamName,
- const std::function<void(void)>& closeCb = nullptr,
- std::function<void (const redutils::ReboltNotifyData&)> _notifyCallback = nullptr);
- redutils::RUReboltLayer* getReboltLayer() { return _reboltLayer; };
- protected:
- //override
- virtual void _open() override;
- virtual void _close() override;
- private:
- void _onNotifyDevelopment(const redutils::ReboltNotifyData& data);
- private:
- std::string _redreamName;
- redutils::RUReboltLayer* _reboltLayer = nullptr;
- std::function<void (const redutils::ReboltNotifyData&)> _notifyCallback = nullptr;
-
- };
- NS_RU_END
- #endif /* RUReboltPopupLayer_h */
|