Struct D3D11Rect
Defines the coordinates of the upper-left and lower-right corners of a rectangle.
Implements
Inherited Members
Namespace: JeremyAnsel.DirectX.D3D11
Assembly: JeremyAnsel.DirectX.D3D11.dll
Syntax
public struct D3D11Rect : IEquatable<D3D11Rect>
Constructors
| Edit this page View SourceD3D11Rect(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 SourceBottom
Gets or sets the y-coordinate of the lower-right corner of a rectangle.
Declaration
public int Bottom { get; set; }
Property Value
Type | Description |
---|---|
int |
Left
Gets or sets the x-coordinate of the upper-left corner of a rectangle.
Declaration
public int Left { get; set; }
Property Value
Type | Description |
---|---|
int |
Right
Gets or sets the x-coordinate of the lower-right corner of a rectangle.
Declaration
public int Right { get; set; }
Property Value
Type | Description |
---|---|
int |
Top
Gets or sets the y-coordinate of the upper-left corner of a rectangle.
Declaration
public int Top { get; set; }
Property Value
Type | Description |
---|---|
int |
Methods
| Edit this page View SourceEquals(D3D11Rect)
Determines whether the specified object is equal to the current object.
Declaration
public bool Equals(D3D11Rect other)
Parameters
Type | Name | Description |
---|---|---|
D3D11Rect | other | The object to compare with the current object. |
Returns
Type | Description |
---|---|
bool |
Equals(object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object to compare with the current object. |
Returns
Type | Description |
---|---|
bool |
Overrides
| Edit this page View SourceGetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A 32-bit signed integer that is the hash code for this instance. |
Overrides
| Edit this page View SourceToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | A string that represents the current object. |
Overrides
Operators
| Edit this page View Sourceoperator ==(D3D11Rect, D3D11Rect)
Compares two D3D11Rect objects. The result specifies whether the values of the two objects are equal.
Declaration
public static bool operator ==(D3D11Rect left, D3D11Rect right)
Parameters
Type | Name | Description |
---|---|---|
D3D11Rect | left | The left D3D11Rect to compare. |
D3D11Rect | right | The right D3D11Rect to compare. |
Returns
Type | Description |
---|---|
bool |
operator !=(D3D11Rect, D3D11Rect)
Compares two D3D11Rect objects. The result specifies whether the values of the two objects are unequal.
Declaration
public static bool operator !=(D3D11Rect left, D3D11Rect right)
Parameters
Type | Name | Description |
---|---|---|
D3D11Rect | left | The left D3D11Rect to compare. |
D3D11Rect | right | The right D3D11Rect to compare. |
Returns
Type | Description |
---|---|
bool |