VPet/VPet-Simulator.Core/Handle/IController.cs

60 lines
1.5 KiB
C#
Raw Normal View History

2022-12-13 07:10:18 +00:00
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace VPet_Simulator.Core
{
/// <summary>
2022-12-14 18:17:13 +00:00
/// 桌宠控制器 需自行实现
2022-12-13 07:10:18 +00:00
/// </summary>
2022-12-14 18:17:13 +00:00
public interface IController
2022-12-13 07:10:18 +00:00
{
/// <summary>
/// 移动桌宠位置
/// </summary>
/// <param name="X">X轴</param>
/// <param name="Y">Y轴</param>
2022-12-14 18:17:13 +00:00
void MoveWindows(double X, double Y);
2022-12-13 07:10:18 +00:00
/// <summary>
/// 获取桌宠距离左侧的位置
/// </summary>
2022-12-14 18:17:13 +00:00
double GetWindowsDistanceLeft();
2022-12-13 07:10:18 +00:00
/// <summary>
/// 获取桌宠距离右侧的位置
/// </summary>
2022-12-14 18:17:13 +00:00
double GetWindowsDistanceRight();
2022-12-13 07:10:18 +00:00
/// <summary>
/// 获取桌宠距离上方的位置
/// </summary>
2022-12-14 18:17:13 +00:00
double GetWindowsDistanceUp();
2022-12-13 07:10:18 +00:00
/// <summary>
/// 获取桌宠距离下方的位置
/// </summary>
2022-12-14 18:17:13 +00:00
double GetWindowsDistanceDown();
2022-12-13 07:10:18 +00:00
/// <summary>
/// 窗体宽度
/// </summary>
2022-12-14 18:17:13 +00:00
double WindowsWidth { get; set; }
2022-12-13 07:10:18 +00:00
/// <summary>
/// 窗体高度
/// </summary>
2022-12-14 18:17:13 +00:00
double WindowsHight { get; set; }
/// <summary>
/// 缩放比例
/// </summary>
double ZoomRatio { get; }
2022-12-28 10:24:38 +00:00
/// <summary>
/// 显示设置窗体
/// </summary>
void ShowSetting();
2023-01-08 02:59:54 +00:00
/// <summary>
/// 显示面板窗体
/// </summary>
void ShowPanel();
2022-12-13 07:10:18 +00:00
}
}