namespace XGame.Framework.UI
{
///
/// UI操作接口
/// UGUI、FGUI组件的操作在该接口的实现类里
///
public interface IUIViewModel
{
void AddChild(INestedView nestedView);
void RemoveChild(INestedView nestedView);
}
public interface IUIViewModelSetter
{
IUIViewModel ViewModel { set; }
}
public interface IUIVMInternal
{
void Init(IUIPanel panel, IUIViewAdapter adapter);
void Init(IUINested nested, IUIViewAdapter adapter);
///
/// 激活嵌套UI
/// 先父后子递归执行
/// 只有嵌套UI的节点是显示状态才会被激活
///
///
void EnableChildren(object intent = null);
///
/// 隐藏嵌套UI
/// 先子后父递归执行
/// 只有嵌套UI的节点是显示状态才会被隐藏
///
void DisableChildren();
}
}