Struct RoundedRectangle
Represents the dimension of a rectangle with rounded edges.
Inherited Members
Namespace: GameOverlay.Drawing
Assembly: GameOverlay.dll
Syntax
public struct RoundedRectangle
Constructors
| Improve this Doc View SourceRoundedRectangle(Rectangle, Single)
Initializes a new RoundedRectangle structure using then given dimension and radius.
Declaration
public RoundedRectangle(Rectangle rectangle, float radius)
Parameters
Type | Name | Description |
---|---|---|
Rectangle | rectangle | A Rectangle structure including the dimension of the rectangle. |
Single | radius | A value indicating the radius of the corners of a RoundedRectangle. |
RoundedRectangle(Rectangle, Single, Single)
Initializes a new RoundedRectangle structure using then given dimension and radius.
Declaration
public RoundedRectangle(Rectangle rectangle, float radiusX, float radiusY)
Parameters
Type | Name | Description |
---|---|---|
Rectangle | rectangle | A Rectangle structure including the dimension of the rectangle. |
Single | radiusX | A value indicating the radius on the x-axis of the corners of a RoundedRectangle. |
Single | radiusY | A value indicating the radius on the y-axis of the corners of a RoundedRectangle. |
RoundedRectangle(Single, Single, Single, Single, Single)
Initializes a new RoundedRectangle structure using then given dimension and radius.
Declaration
public RoundedRectangle(float left, float top, float right, float bottom, float radius)
Parameters
Type | Name | Description |
---|---|---|
Single | left | The x-coordinate of the upper-left corner of the Rectangle. |
Single | top | The y-coordinate of the upper-left corner of the Rectangle. |
Single | right | The x-coordinate of the bottom-right corner of the Rectangle. |
Single | bottom | The y-coordinate of the bottom-right corner of the Rectangle. |
Single | radius | A value indicating the radius of the corners of a RoundedRectangle. |
RoundedRectangle(Single, Single, Single, Single, Single, Single)
Initializes a new RoundedRectangle structure using then given dimension and radius.
Declaration
public RoundedRectangle(float left, float top, float right, float bottom, float radiusX, float radiusY)
Parameters
Type | Name | Description |
---|---|---|
Single | left | The x-coordinate of the upper-left corner of the Rectangle. |
Single | top | The y-coordinate of the upper-left corner of the Rectangle. |
Single | right | The x-coordinate of the bottom-right corner of the Rectangle. |
Single | bottom | The y-coordinate of the bottom-right corner of the Rectangle. |
Single | radiusX | A value indicating the radius on the x-axis of the corners of a RoundedRectangle. |
Single | radiusY | A value indicating the radius on the y-axis of the corners of a RoundedRectangle. |
Fields
| Improve this Doc View SourceRadiusX
The radius on the x-axis of this RoundedRectangle.
Declaration
public float RadiusX
Field Value
Type | Description |
---|---|
Single |
RadiusY
The radius on the y-axis of this RoundedRectangle.
Declaration
public float RadiusY
Field Value
Type | Description |
---|---|
Single |
Rectangle
The Rectangle.
Declaration
public Rectangle Rectangle
Field Value
Type | Description |
---|---|
Rectangle |
Methods
| Improve this Doc View SourceCreate(Single, Single, Single, Single, Single)
Creates a new RoundedRectangle using the given dimension and radius.
Declaration
public static RoundedRectangle Create(float x, float y, float width, float height, float radius)
Parameters
Type | Name | Description |
---|---|---|
Single | x | The x-coordinate of the upper-left corner of the Rectangle. |
Single | y | The y-coordinate of the upper-left corner of the Rectangle. |
Single | width | The width of the Rectangle. |
Single | height | The height of the Rectangle. |
Single | radius | A value indicating the radius of the corners of a RoundedRectangle. |
Returns
Type | Description |
---|---|
RoundedRectangle | The RoundedRectangle this method creates. |
Create(Single, Single, Single, Single, Single, Single)
Creates a new RoundedRectangle using the given dimension and radius.
Declaration
public static RoundedRectangle Create(float x, float y, float width, float height, float radiusX, float radiusY)
Parameters
Type | Name | Description |
---|---|---|
Single | x | The x-coordinate of the upper-left corner of the Rectangle. |
Single | y | The y-coordinate of the upper-left corner of the Rectangle. |
Single | width | The width of the Rectangle. |
Single | height | The height of the Rectangle. |
Single | radiusX | A value indicating the radius on the x-axis of the corners of a RoundedRectangle. |
Single | radiusY | A value indicating the radius on the y-axis of the corners of a RoundedRectangle. |
Returns
Type | Description |
---|---|
RoundedRectangle | The RoundedRectangle this method creates. |
Equals(Object)
Returns a value indicating whether this instance and a specified Object represent the same type and value.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj | The object to compare with this instance. |
Returns
Type | Description |
---|---|
Boolean | true if |
Overrides
| Improve this Doc View SourceGetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 | A 32-bit signed integer hash code. |
Overrides
| Improve this Doc View SourceToString()
Converts this RoundedRectangle structure to a human-readable string.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | A string representation of this RoundedRectangle |
Overrides
Operators
| Improve this Doc View SourceEquality(RoundedRectangle, RoundedRectangle)
Determines whether two specified instances are equal.
Declaration
public static bool operator ==(RoundedRectangle left, RoundedRectangle right)
Parameters
Type | Name | Description |
---|---|---|
RoundedRectangle | left | The first object to compare. |
RoundedRectangle | right | The second object to compare. |
Returns
Type | Description |
---|---|
Boolean | true if |
Implicit(RoundedRectangle to RoundedRectangle)
Converts a RoundedRectangle structure to a SharpDX RoundedRectangle.
Declaration
public static implicit operator RoundedRectangle(RoundedRectangle rectangle)
Parameters
Type | Name | Description |
---|---|---|
RoundedRectangle | rectangle | A RoundedRectangle struct |
Returns
Type | Description |
---|---|
SharpDX.Direct2D1.RoundedRectangle |
Inequality(RoundedRectangle, RoundedRectangle)
Determines whether two specified instances are not equal.
Declaration
public static bool operator !=(RoundedRectangle left, RoundedRectangle right)
Parameters
Type | Name | Description |
---|---|---|
RoundedRectangle | left | The first object to compare. |
RoundedRectangle | right | The second object to compare. |
Returns
Type | Description |
---|---|
Boolean | true if |