![]() |
Paradox Game Engine
v1.0.0 beta06
|
Describes the thickness of a frame around a cuboid. Six float values describe the Left, Top, Right, Bottom, Front, and Back sides of the cuboid, respectively. More...
Public Member Functions | |
Thickness (float left, float top, float right, float bottom) | |
Initializes a new instance of the Thickness structure that has specific lengths applied to each side of the rectangle. More... | |
Thickness (float left, float top, float back, float right, float bottom, float front) | |
Initializes a new instance of the Thickness structure that has specific lengths applied to each side of the cuboid. More... | |
Static Public Member Functions | |
static Thickness | UniformRectangle (float thickness) |
Initializes a new instance of the Thickness structure that has the specified uniform length on the Left, Right, Top, Bottom side and 0 for the Front and Back side. More... | |
static Thickness | UniformCuboid (float thickness) |
Initializes a new instance of the Thickness structure that has the specified uniform length on the Left, Right, Top, Bottom, Front, and Back side. More... | |
static Thickness | operator- (Thickness value) |
Reverses the direction of a given Thickness. More... | |
static Thickness | operator+ (Thickness value1, Thickness value2) |
Addition two Thickness together. More... | |
static Thickness | operator/ (Thickness value1, float value2) |
Divide a Thickness by a float. More... | |
Public Attributes | |
float | Bottom |
The bottom side of the bounding rectangle. More... | |
float | Left |
The left side of the bounding rectangle. More... | |
float | Right |
The right side of the bounding rectangle. More... | |
float | Top |
The upper side of the bounding rectangle. More... | |
float | Front |
The front side of the bounding rectangle. More... | |
float | Back |
The Back side of the bounding rectangle. More... | |
Properties | |
float | this[int index] [get] |
Gets the component at the specified index. More... | |
Describes the thickness of a frame around a cuboid. Six float values describe the Left, Top, Right, Bottom, Front, and Back sides of the cuboid, respectively.
Definition at line 12 of file Thickness.cs.
SiliconStudio.Paradox.UI.Thickness.Thickness | ( | float | left, |
float | top, | ||
float | right, | ||
float | bottom | ||
) |
Initializes a new instance of the Thickness structure that has specific lengths applied to each side of the rectangle.
bottom | The thickness for the lower side of the rectangle. |
left | The thickness for the left side of the rectangle. |
right | The thickness for the right side of the rectangle |
top | The thickness for the upper side of the rectangle. |
Definition at line 41 of file Thickness.cs.
References SiliconStudio.Paradox.UI.Bottom, and SiliconStudio.Paradox.UI.Top.
SiliconStudio.Paradox.UI.Thickness.Thickness | ( | float | left, |
float | top, | ||
float | back, | ||
float | right, | ||
float | bottom, | ||
float | front | ||
) |
Initializes a new instance of the Thickness structure that has specific lengths applied to each side of the cuboid.
bottom | The thickness for the lower side of the rectangle. |
left | The thickness for the left side of the rectangle. |
right | The thickness for the right side of the rectangle |
top | The thickness for the upper side of the rectangle. |
front | The thickness for the front side of the rectangle. |
back | The thickness for the Back side of the rectangle. |
Definition at line 92 of file Thickness.cs.
References SiliconStudio.Paradox.UI.Bottom, and SiliconStudio.Paradox.UI.Top.
|
static |
Addition two Thickness together.
value1 | The first thickness to add. |
value2 | The second thickness to add. |
Definition at line 67 of file Thickness.cs.
References SiliconStudio.Paradox.UI.Thickness.Back, SiliconStudio.Paradox.UI.Thickness.Bottom, SiliconStudio.Paradox.UI.Thickness.Front, SiliconStudio.Paradox.UI.Thickness.Left, SiliconStudio.Paradox.UI.Thickness.Right, and SiliconStudio.Paradox.UI.Thickness.Top.
Reverses the direction of a given Thickness.
value | The Thickness to negate. |
Definition at line 56 of file Thickness.cs.
References SiliconStudio.Paradox.UI.Thickness.Back, SiliconStudio.Paradox.UI.Thickness.Bottom, SiliconStudio.Paradox.UI.Thickness.Front, SiliconStudio.Paradox.UI.Thickness.Left, SiliconStudio.Paradox.UI.Thickness.Right, and SiliconStudio.Paradox.UI.Thickness.Top.
|
static |
Divide a Thickness by a float.
value1 | The first thickness to add. |
value2 | The float value to divide by. |
Definition at line 78 of file Thickness.cs.
References SiliconStudio.Paradox.UI.Thickness.Back, SiliconStudio.Paradox.UI.Thickness.Bottom, SiliconStudio.Paradox.UI.Thickness.Front, SiliconStudio.Paradox.UI.Thickness.Left, SiliconStudio.Paradox.UI.Thickness.Right, and SiliconStudio.Paradox.UI.Thickness.Top.
|
static |
Initializes a new instance of the Thickness structure that has the specified uniform length on the Left, Right, Top, Bottom, Front, and Back side.
thickness | The uniform length applied to all six sides of the bounding cuboid. |
Definition at line 29 of file Thickness.cs.
|
static |
Initializes a new instance of the Thickness structure that has the specified uniform length on the Left, Right, Top, Bottom side and 0 for the Front and Back side.
thickness | The uniform length applied to all four sides of the bounding rectangle. |
Definition at line 19 of file Thickness.cs.
float SiliconStudio.Paradox.UI.Thickness.Back |
The Back side of the bounding rectangle.
Definition at line 130 of file Thickness.cs.
Referenced by SiliconStudio.Paradox.UI.Thickness.operator+(), SiliconStudio.Paradox.UI.Thickness.operator-(), and SiliconStudio.Paradox.UI.Thickness.operator/().
float SiliconStudio.Paradox.UI.Thickness.Bottom |
The bottom side of the bounding rectangle.
Definition at line 105 of file Thickness.cs.
Referenced by SiliconStudio.Paradox.UI.Thickness.operator+(), SiliconStudio.Paradox.UI.Thickness.operator-(), and SiliconStudio.Paradox.UI.Thickness.operator/().
float SiliconStudio.Paradox.UI.Thickness.Front |
The front side of the bounding rectangle.
Definition at line 125 of file Thickness.cs.
Referenced by SiliconStudio.Paradox.UI.Thickness.operator+(), SiliconStudio.Paradox.UI.Thickness.operator-(), and SiliconStudio.Paradox.UI.Thickness.operator/().
float SiliconStudio.Paradox.UI.Thickness.Left |
The left side of the bounding rectangle.
Definition at line 110 of file Thickness.cs.
Referenced by SiliconStudio.Paradox.UI.Thickness.operator+(), SiliconStudio.Paradox.UI.Thickness.operator-(), and SiliconStudio.Paradox.UI.Thickness.operator/().
float SiliconStudio.Paradox.UI.Thickness.Right |
The right side of the bounding rectangle.
Definition at line 115 of file Thickness.cs.
Referenced by SiliconStudio.Paradox.UI.Thickness.operator+(), SiliconStudio.Paradox.UI.Thickness.operator-(), and SiliconStudio.Paradox.UI.Thickness.operator/().
float SiliconStudio.Paradox.UI.Thickness.Top |
The upper side of the bounding rectangle.
Definition at line 120 of file Thickness.cs.
Referenced by SiliconStudio.Paradox.UI.Thickness.operator+(), SiliconStudio.Paradox.UI.Thickness.operator-(), and SiliconStudio.Paradox.UI.Thickness.operator/().
|
get |
Gets the component at the specified index.
index | The index of the component to access. Use 0 for the Left component, 1 for the Top component, 2 for the Front component, 3 for the Right component, 4 for the Bottom component, 5 for the Back component. |
System.ArgumentOutOfRangeException | Thrown when the index is out of the range [0, 5]. |
Definition at line 140 of file Thickness.cs.