代码拉取完成,页面将自动刷新
using System;
using OpenTK.Mathematics;
using OpenTK.Windowing.Common;
namespace engenious
{
/// <summary>
/// Base interface for controls.
/// </summary>
public interface IControl : IDisposable
{
/// <summary>
/// Calculates a <see cref="Point"/> in client coordinates to screen coordinates.
/// </summary>
/// <param name="pt">The <see cref="Point"/> in client coordinates.</param>
/// <returns>The <see cref="Point"/> translated into screen coordinates.</returns>
Point PointToScreen(Point pt);
/// <summary>
/// Calculates a <see cref="Point"/> in screen coordinates to client coordinates.
/// </summary>
/// <param name="pt">The <see cref="Point"/> in screen coordinates.</param>
/// <returns>The <see cref="Point"/> translated into client coordinates.</returns>
Point PointToClient(Point pt);
/// <summary>
/// Calculates a <see cref="Vector2"/> in client coordinates to screen coordinates.
/// </summary>
/// <param name="pt">The <see cref="Vector2"/> in client coordinates.</param>
/// <returns>The <see cref="Vector2"/> translated into screen coordinates.</returns>
Vector2 Vector2ToScreen(Vector2 pt);
/// <summary>
/// Calculates a <see cref="Vector2"/> in screen coordinates to client coordinates.
/// </summary>
/// <param name="pt">The <see cref="Vector2"/> in screen coordinates.</param>
/// <returns>The <see cref="Vector2"/> translated into client coordinates.</returns>
Vector2 Vector2ToClient(Vector2 pt);
/// <summary>
/// Gets or sets a <see cref="Rectangle"/> for this control client area.
/// </summary>
Rectangle ClientRectangle { get; set; }
/// <summary>
/// Gets or sets the <see cref="Size"/> of this controls client area.
/// </summary>
Size ClientSize { get; set; }
/// <summary>
/// Gets or sets whether the <see cref="IRenderingSurface"/> is in focus.
/// </summary>
bool Focused { get; }
/// <summary>
/// Gets or sets whether the mouse cursor is visible on this <see cref="IRenderingSurface"/>.
/// </summary>
bool CursorVisible { get; set; }
/// <summary>
/// Gets or sets whether the mouse cursor is grabbed on this <see cref="IRenderingSurface"/>.
/// </summary>
bool CursorGrabbed { get; set; }
/// <summary>
/// Gets or sets whether the <see cref="IRenderingSurface"/> is visible.
/// </summary>
bool Visible { get; set; }
/// <summary>
/// Gets a native handle for this <see cref="IRenderingSurface"/>.
/// </summary>
IntPtr Handle { get; }
/// <summary>
/// Gets a representation of native surface handle for this <see cref="IRenderingSurface"/>.
/// </summary>
IWindowWrapper? WindowInfo { get; }
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。