AutoPatientInfoRecorder/src/AntdUI/Lib/Vanara/Shared/WinDef/RECT.cs

(开头部分) 17KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

// THIS FILE IS PART OF Vanara PROJECT
// THE Vanara PROJECT IS AN OPENSOURCE LIBRARY LICENSED UNDER THE MIT License.
// COPYRIGHT (C) dahall. ALL RIGHTS RESERVED.
// GITHUB: https://github.com/dahall/Vanara

using System;
using System.Diagnostics.CodeAnalysis;
using System.Drawing;
using System.Runtime.InteropServices;

namespace Vanara.PInvoke
{
    /// <summary>Defines the coordinates of the upper-left and lower-right corners of a rectangle.</summary>
    /// <remarks>
    /// By convention, the right and bottom edges of the rectangle are normally considered exclusive. In other words, the pixel whose
    /// coordinates are ( right, bottom ) lies immediately outside of the rectangle. For example, when RECT is passed to the FillRect
    /// function, the rectangle is filled up to, but not including, the right column and bottom row of pixels. This structure is identical to
    /// the RECT structure.
    /// </remarks>
    [StructLayout(LayoutKind.Sequential)]
    public struct RECT : IEquatable<PRECT>, IEquatable<RECT>, IEquatable<Rectangle>
    {
        /// <summary>The x-coordinate of the upper-left corner of the rectangle.</summary>
        public int left;

        /// <summary>The y-coordinate of the upper-left corner of the rectangle.</summary>
        public int top;

        /// <summary>he x-coordinate of the lower-right corner of the rectangle.</summary>
        public int right;

        /// <summary>he y-coordinate of the lower-right corner of the rectangle.</summary>
        public int bottom;

        /// <summary>Initializes a new instance of the <see cref="RECT"/> struct.</summary>
        /// <param name="left">The left.</param>
        /// <param name="top">The top.</param>
        /// <param name="right">The right.</param>
        /// <param name="bottom">The bottom.</param>
        public RECT(int left, int top, int right, int bottom)
        {
            this.left = left;
            this.top = top;
            this.right = right;
            this.bottom = bottom;
        }

        /// <summary>Initializes a new instance of the <see cref="RECT"/> struct.</summary>
        /// <param name="r">The rectangle.</param>
        public RECT(Rectangle r) : this(r.Left, r.Top, r.Right, r.Bottom)
        {
        }

        /// <summary>Gets or sets the x-coordinate of the upper-left corner of this <see cref="RECT"/> structure.</summary>
        /// <value>The x-coordinate of the upper-left corner of this <see cref="RECT"/> structure. The default is 0.</value>
        public int X
        {
            get => left;
            set
            {
后面还有 315 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。