Quantum 3
3.0.9
Unity custom editor GUI utility functions. More...
Static Public Member Functions | |
| static Rect | AddHeight (this Rect r, float h) |
| Add a delta to the height of the rect. More... | |
| static Rect | AddWidth (this Rect r, float w) |
| Add a delta to the width of the rect. More... | |
| static Rect | AddX (this Rect r, float x) |
| Add to the x component of the rect. More... | |
| static Rect | AddXMax (this Rect r, float x) |
| Add to the xMax component of the rect. More... | |
| static Rect | AddXMin (this Rect r, float x) |
| Add to the xMin component of the rect. More... | |
| static Rect | AddXY (this Rect r, float x, float y) |
| Add position delta to the rect. More... | |
| static Rect | AddXY (this Rect r, Vector2 xy) |
| Add a delta to the position Rect.x and Rect.y. More... | |
| static Rect | AddY (this Rect r, float y) |
| Add to the y component of the rect. More... | |
| static Rect | AddYMax (this Rect r, float y) |
| Add to the yMax component of the rect. More... | |
| static Rect | AddYMin (this Rect r, float y) |
| Add to the yMin component of the rect. More... | |
| static Rect | Adjust (this Rect r, float x, float y, float w, float h) |
| Add to x,y, width and height component of the rect. More... | |
| static Rect | SetHeight (this Rect r, float h) |
| Set the height of a rect. More... | |
| static Rect | SetWidth (this Rect r, float w) |
| Set the width of rect. More... | |
| static Rect | SetWidthHeight (this Rect r, float w, float h) |
| Set the height and the width of the rect. More... | |
| static Rect | SetWidthHeight (this Rect r, Vector2 v) |
| Set the height and the width of the rect. More... | |
| static Rect | SetX (this Rect r, float x) |
| Set the x component of the rect. More... | |
| static Rect | SetXMax (this Rect r, float x) |
| Set the xMin component of the rect. More... | |
| static Rect | SetXMin (this Rect r, float x) |
| Set the xMin component of the rect. More... | |
| static Rect | SetY (this Rect r, float y) |
| Set the y component of the rect. More... | |
| static Rect | SetYMax (this Rect r, float y) |
| The set yMax component of the rect. More... | |
| static Rect | SetYMin (this Rect r, float y) |
| Set the yMin component of the rect. More... | |
| static Rect | ToRect (this Vector2 v, float w, float h) |
| Create a rect with the given position and size. More... | |
| static Vector2 | ToVector2 (this Rect r) |
| Convert the rect width and height to a vector2. More... | |
| static Rect | ZeroXY (this Rect r) |
| Set the position to zero. More... | |
Unity custom editor GUI utility functions.
|
inlinestatic |
Set the width of rect.
| r | Rect |
| w | New width |
|
inlinestatic |
Set the height and the width of the rect.
| r | Rect |
| v | X component is set as width, y component is set as height |
|
inlinestatic |
Set the height and the width of the rect.
| r | Rect |
| w | The new width |
| h | The new height |
|
inlinestatic |
Add a delta to the width of the rect.
| r | Rect |
| w | Width delta to apply |
|
inlinestatic |
Add a delta to the height of the rect.
| r | Rect |
| h | Height delta to apply |
|
inlinestatic |
Set the height of a rect.
| r | Rect |
| h | The new height value |
|
inlinestatic |
Add a delta to the position Rect.x and Rect.y.
| r | Rect |
| xy | Position delta to be added |
|
inlinestatic |
Add position delta to the rect.
| r | Rect |
| x | Add to Rect.x |
| y | Add to Rect.y |
|
inlinestatic |
Add to the x component of the rect.
| r | Rect |
| x | Value to add to Rect.x |
|
inlinestatic |
Add to the y component of the rect.
| r | Rect |
| y | Value to add to Rect.y |
|
inlinestatic |
Set the y component of the rect.
| r | Rect |
| y | Value to set as Rect.y |
|
inlinestatic |
Set the x component of the rect.
| r | Rect |
| x | Value to set as Rect.x |
|
inlinestatic |
Set the xMin component of the rect.
| r | Rect |
| x | Value to set as Rect.xMin |
|
inlinestatic |
Set the xMin component of the rect.
| r | Rect |
| x | Value to set as Rect.xMax |
|
inlinestatic |
Set the yMin component of the rect.
| r | Rect |
| y | Value to set as Rect.yMin |
|
inlinestatic |
The set yMax component of the rect.
| r | Rect |
| y | Value to set as Rect.yMax |
|
inlinestatic |
Add to the xMin component of the rect.
| r | Rect |
| x | Value to add to Rect.xMin |
|
inlinestatic |
Add to the xMax component of the rect.
| r | Rect |
| x | Value to add to Rect.xMax |
|
inlinestatic |
Add to the yMin component of the rect.
| r | Rect |
| y | Value to add to Rect.yMin |
|
inlinestatic |
Add to the yMax component of the rect.
| r | Rect |
| y | The value to add to Rect.yMax |
|
inlinestatic |
Add to x,y, width and height component of the rect.
| r | Rect |
| x | Value to add to Rect.x |
| y | Value to add to Rect.y |
| w | Value to add to Rect.width |
| h | Value to add to Rect.height |
|
inlinestatic |
Create a rect with the given position and size.
| v | Rect position |
| w | Rect width |
| h | Rect height |
|
inlinestatic |
Set the position to zero.
| r | Rect |
|
inlinestatic |
Convert the rect width and height to a vector2.
| r | Rect |