-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIInstance.cs
More file actions
40 lines (37 loc) · 906 Bytes
/
IInstance.cs
File metadata and controls
40 lines (37 loc) · 906 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
using Avalonia.Controls;
using ColorDesktop.Api.Objs;
namespace ColorDesktop.Api;
public interface IInstance
{
/// <summary>
/// 实例启动
/// </summary>
void Start(IInstanceWindow window);
/// <summary>
/// 实例停止
/// </summary>
void Stop(IInstanceWindow window);
/// <summary>
/// 窗口显示后
/// </summary>
void WindowLoaded(IInstanceWindow window);
/// <summary>
/// 渲染
/// </summary>
void RenderTick(IInstanceWindow window);
/// <summary>
/// 创建显示图层
/// </summary>
/// <returns></returns>
Control CreateView();
/// <summary>
/// 配置更新
/// </summary>
/// <param name="obj">实例设置</param>
void Update(InstanceDataObj obj);
/// <summary>
/// 获取窗口控制
/// </summary>
/// <returns></returns>
IInstanceHandel? GetHandel();
}