This commit is contained in:
睿 安
2026-01-25 23:46:14 +08:00
parent 2a2a3d68d8
commit 37e7d278bd
727 changed files with 193377 additions and 7 deletions

View File

@@ -0,0 +1,29 @@
#pragma once
#include "EzUI.h"
#include "UILoader.h"
namespace ezui {
//内联页面 内部控件与外部隔离
class UI_EXPORT Frame :public Control {
private:
UILoader m_loader;//内部UI管理器
public:
//对外暴露消息通知回调
std::function<void(Control*, EventArgs&)> NotifyHandler = NULL;
Frame(Object* ownerObject = NULL);
virtual ~Frame();
//是否为Frame
virtual bool IsFrame()override final;
//从文件中加载xml
void LoadXml(const UIString& fileName);
//设置唯一布局
void SetLayout(Control* ctrl);
//获取布局
Control* GetLayout();
virtual void SetAttribute(const UIString& attrName, const UIString& attrValue)override;
//消息通知
virtual void OnNotify(Control* sender, EventArgs& args);
//获取UI管理器
UILoader* GetUILoader();
};
};