mirror of
https://github.com/hawkeye-stan/msfs-popout-panel-manager.git
synced 2024-11-22 22:00:11 +00:00
38 lines
637 B
C#
38 lines
637 B
C#
|
using System.Runtime.InteropServices;
|
|||
|
|
|||
|
namespace MSFSPopoutPanelManager
|
|||
|
{
|
|||
|
[StructLayout(LayoutKind.Sequential)]
|
|||
|
public struct Rect
|
|||
|
{
|
|||
|
public int Left;
|
|||
|
public int Top;
|
|||
|
public int Right;
|
|||
|
public int Bottom;
|
|||
|
|
|||
|
public int Width
|
|||
|
{
|
|||
|
get
|
|||
|
{
|
|||
|
return Right - Left;
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
public int Height
|
|||
|
{
|
|||
|
get
|
|||
|
{
|
|||
|
return Bottom - Top;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
[StructLayout(LayoutKind.Sequential)]
|
|||
|
public struct POINT
|
|||
|
{
|
|||
|
public int X;
|
|||
|
public int Y;
|
|||
|
}
|
|||
|
}
|