using XGame.Framework.Interfaces;

namespace XGame.Framework.UI.View
{
    /// <summary>
    /// UI对象的管理接口
    /// 管理UIPanel,UIController,UIViewModel等
    /// </summary>
    public interface IUIView : IUpdate, ILateUpdate
    {
        /// <summary>
        /// Panel实例
        /// </summary>
        IUIPanel Panel { get; }
        /// <summary>
        /// 激活状态
        /// </summary>
        bool Active { get; }
        /// <summary>
        /// 激活
        /// </summary>
        void Enable(object intent = null);
        /// <summary>
        /// 隐藏
        /// </summary>
        void Disable();
    }
}
