Struct D3D11Rect
Defines the coordinates of the upper-left and lower-right corners of a rectangle.
Assembly: JeremyAnsel.DirectX.D3D11.dll
Syntax
public struct D3D11Rect : IEquatable<D3D11Rect>
Constructors
|
Edit this page
View Source
D3D11Rect(int, int, int, int)
Initializes a new instance of the D3D11Rect struct.
Declaration
public D3D11Rect(int left, int top, int right, int bottom)
Parameters
| Type |
Name |
Description |
| int |
left |
The x-coordinate of the upper-left corner of a rectangle.
|
| int |
top |
The y-coordinate of the upper-left corner of a rectangle.
|
| int |
right |
The x-coordinate of the lower-right corner of a rectangle.
|
| int |
bottom |
The y-coordinate of the lower-right corner of a rectangle.
|
Properties
|
Edit this page
View Source
Bottom
Gets or sets the y-coordinate of the lower-right corner of a rectangle.
Declaration
public int Bottom { get; set; }
Property Value
|
Edit this page
View Source
Left
Gets or sets the x-coordinate of the upper-left corner of a rectangle.
Declaration
public int Left { get; set; }
Property Value
|
Edit this page
View Source
Right
Gets or sets the x-coordinate of the lower-right corner of a rectangle.
Declaration
public int Right { get; set; }
Property Value
|
Edit this page
View Source
Top
Gets or sets the y-coordinate of the upper-left corner of a rectangle.
Declaration
public int Top { get; set; }
Property Value
Methods
|
Edit this page
View Source
Equals(D3D11Rect)
Declaration
public readonly bool Equals(D3D11Rect 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 D3D11Rect NativeReadFrom(nint buffer)
Parameters
| Type |
Name |
Description |
| nint |
buffer |
|
Returns
|
Edit this page
View Source
NativeReadFrom(nint, Span<D3D11Rect>)
Declaration
public static void NativeReadFrom(nint buffer, Span<D3D11Rect> 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 D3D11Rect)
Declaration
public static void NativeWriteTo(nint buffer, in D3D11Rect obj)
Parameters
|
Edit this page
View Source
NativeWriteTo(nint, ReadOnlySpan<D3D11Rect>)
Declaration
public static void NativeWriteTo(nint buffer, ReadOnlySpan<D3D11Rect> 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 ==(D3D11Rect, D3D11Rect)
Declaration
public static bool operator ==(D3D11Rect left, D3D11Rect right)
Parameters
Returns
|
Edit this page
View Source
operator !=(D3D11Rect, D3D11Rect)
Declaration
public static bool operator !=(D3D11Rect left, D3D11Rect right)
Parameters
Returns
Implements