rect.cs

来自「破解的飞信源代码」· CS 代码 · 共 42 行

CS
42
字号
namespace Imps.Client.Utils.Win32
{
    using System;
    using System.Runtime.InteropServices;

    [Serializable, StructLayout(LayoutKind.Sequential)]
    public struct RECT
    {
        public int Left;
        public int Top;
        public int Right;
        public int Bottom;
        private static RECT _empty;
        public int Width
        {
            get
            {
                return (this.Right - this.Left);
            }
        }
        public int Height
        {
            get
            {
                return (this.Bottom - this.Top);
            }
        }
        public static RECT Empty
        {
            get
            {
                return _empty;
            }
        }
        static RECT()
        {
            _empty = new RECT();
        }
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?