Struct DxgiPoint
Defines the x- and y- coordinates of a point.
Assembly: JeremyAnsel.DirectX.Dxgi.dll
Syntax
public struct DxgiPoint : IEquatable<DxgiPoint>
Constructors
|
Edit this page
View Source
DxgiPoint(int, int)
Initializes a new instance of the DxgiPoint struct.
Declaration
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "x", Justification = "Reviewed")]
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "y", Justification = "Reviewed")]
public DxgiPoint(int x, int y)
Parameters
| Type |
Name |
Description |
| int |
x |
The x-coordinate of the point.
|
| int |
y |
The y-coordinate of the point.
|
Properties
|
Edit this page
View Source
X
Gets or sets the x-coordinate of the point.
Declaration
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "X", Justification = "Reviewed")]
public int X { get; set; }
Property Value
|
Edit this page
View Source
Y
Gets or sets the y-coordinate of the point.
Declaration
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Y", Justification = "Reviewed")]
public int Y { get; set; }
Property Value
Methods
|
Edit this page
View Source
Equals(DxgiPoint)
Declaration
public readonly bool Equals(DxgiPoint other)
Parameters
Returns
|
Edit this page
View Source
Equals(object?)
Declaration
public override readonly bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
|
Edit this page
View Source
GetHashCode()
Declaration
public override readonly int GetHashCode()
Returns
Overrides
|
Edit this page
View Source
NativeReadFrom(nint)
Declaration
public static DxgiPoint NativeReadFrom(nint buffer)
Parameters
| Type |
Name |
Description |
| nint |
buffer |
|
Returns
|
Edit this page
View Source
NativeReadFrom(nint, Span<DxgiPoint>)
Declaration
public static void NativeReadFrom(nint buffer, Span<DxgiPoint> objects)
Parameters
|
Edit this page
View Source
NativeRequiredSize()
Declaration
public static int NativeRequiredSize()
Returns
|
Edit this page
View Source
NativeRequiredSize(int)
Declaration
public static int NativeRequiredSize(int count)
Parameters
| Type |
Name |
Description |
| int |
count |
|
Returns
|
Edit this page
View Source
NativeWriteTo(nint, in DxgiPoint)
Declaration
public static void NativeWriteTo(nint buffer, in DxgiPoint obj)
Parameters
|
Edit this page
View Source
NativeWriteTo(nint, ReadOnlySpan<DxgiPoint>)
Declaration
public static void NativeWriteTo(nint buffer, ReadOnlySpan<DxgiPoint> objects)
Parameters
|
Edit this page
View Source
ToString()
Returns a string that represents the current object.
Declaration
public override readonly string ToString()
Returns
| Type |
Description |
| string |
A string that represents the current object.
|
Overrides
Operators
|
Edit this page
View Source
operator ==(DxgiPoint, DxgiPoint)
Declaration
public static bool operator ==(DxgiPoint left, DxgiPoint right)
Parameters
Returns
|
Edit this page
View Source
operator !=(DxgiPoint, DxgiPoint)
Declaration
public static bool operator !=(DxgiPoint left, DxgiPoint right)
Parameters
Returns
Implements