JD2022-TU1/main/tools/framework/JD.ScreenWrappers/IControl.cs

30 lines
No EOL
626 B
C#

using System.Drawing;
namespace JD.ScreenWrappers
{
/// <summary>
/// Interface that resembles Windows.Forms.Control.
/// </summary>
public interface IControl
{
#region Properties
Size Size { get; }
#endregion
#region Methods
/// <summary>
/// Converts the point from screen coords to client (the control) coords.
/// </summary>
Point PointToClient(Point screenPoint);
/// <summary>
/// Does the inverse of PointToClient.
/// </summary>
Point PointToScreen(Point clientPoint);
#endregion
}
}