Doloro GDK 22 .1.0 Beta
by Tauri Interactive
Doloro.UIEngine2.RectTransformExtensions Class Reference

Detailed Description

Provides API extension for the RectTransform class.

Static Public Member Functions

static Vector2 GetLeftTopPoint (this RectTransform transform)
 Computes position of the left to corner of an element at the screen space coordinates. More...
 
static Vector2 GetLeftTopPoint (this RectTransform transform, Vector2 position)
 Getting left top corner for the rect transform with simulation of some another position. More...
 
static Vector2 GetLeftTopPoint (this RectTransform transform, Vector2 position, Vector2 size)
 Getting left top corner for the rect transform with simulation of some another position. More...
 
static void SetLeft (this RectTransform rt, float left)
 Sets offset from left side. More...
 
static void SetRight (this RectTransform rt, float right)
 Sets offset from right side. More...
 
static void SetTop (this RectTransform rt, float top)
 Sets offset from top side. More...
 
static void SetBottom (this RectTransform rt, float bottom)
 Sets offset from bottom side. More...
 
static void SetZeroOffset (this RectTransform rt)
 Drops offset to the 0. More...
 
static void PinRight (this RectTransform rt)
 Pins UI coordinates to the right side of the parent GUI element. More...
 
static void PinLeft (this RectTransform rt)
 Pins UI coordinates to the left side of the parent GUI element. More...
 
static void PinTop (this RectTransform rt)
 Pins UI coordinates to the top side of the parent GUI element. More...
 
static void PinBottom (this RectTransform rt)
 Pins UI coordinates to the bottom side of the parent GUI element. More...
 
static void PinStratch (this RectTransform rt)
 Makes GUI element scratched to the parent GUI element. More...
 

Member Function Documentation

◆ GetLeftTopPoint() [1/3]

static Vector2 Doloro.UIEngine2.RectTransformExtensions.GetLeftTopPoint ( this RectTransform  transform)
static

Computes position of the left to corner of an element at the screen space coordinates.

Parameters
transformTarget object.
Returns
Coordinates of the left top corner.

◆ GetLeftTopPoint() [2/3]

static Vector2 Doloro.UIEngine2.RectTransformExtensions.GetLeftTopPoint ( this RectTransform  transform,
Vector2  position 
)
static

Getting left top corner for the rect transform with simulation of some another position.

Parameters
transformTarget transform with layout settings.
positionVirtual position of the transform in world coords.
Returns
Coordinates of the left top corner.

◆ GetLeftTopPoint() [3/3]

static Vector2 Doloro.UIEngine2.RectTransformExtensions.GetLeftTopPoint ( this RectTransform  transform,
Vector2  position,
Vector2  size 
)
static

Getting left top corner for the rect transform with simulation of some another position.

Parameters
transformTarget transform with layout settings.
positionVirtual position of the transform in world coords.
sizeVirtual size of the element.
Returns
Coordinates of the left top corner.

◆ PinBottom()

static void Doloro.UIEngine2.RectTransformExtensions.PinBottom ( this RectTransform  rt)
static

Pins UI coordinates to the bottom side of the parent GUI element.

Parameters
rtTarget transform.

◆ PinLeft()

static void Doloro.UIEngine2.RectTransformExtensions.PinLeft ( this RectTransform  rt)
static

Pins UI coordinates to the left side of the parent GUI element.

Parameters
rtTarget transform.

◆ PinRight()

static void Doloro.UIEngine2.RectTransformExtensions.PinRight ( this RectTransform  rt)
static

Pins UI coordinates to the right side of the parent GUI element.

Parameters
rtTarget transform.

◆ PinStratch()

static void Doloro.UIEngine2.RectTransformExtensions.PinStratch ( this RectTransform  rt)
static

Makes GUI element scratched to the parent GUI element.

Parameters
rtTarget transform.

◆ PinTop()

static void Doloro.UIEngine2.RectTransformExtensions.PinTop ( this RectTransform  rt)
static

Pins UI coordinates to the top side of the parent GUI element.

Parameters
rtTarget transform.

◆ SetBottom()

static void Doloro.UIEngine2.RectTransformExtensions.SetBottom ( this RectTransform  rt,
float  bottom 
)
static

Sets offset from bottom side.

Parameters
rtTarget transform.
bottomOffset value.

◆ SetLeft()

static void Doloro.UIEngine2.RectTransformExtensions.SetLeft ( this RectTransform  rt,
float  left 
)
static

Sets offset from left side.

Parameters
rtTarget transform.
leftOffset value.

◆ SetRight()

static void Doloro.UIEngine2.RectTransformExtensions.SetRight ( this RectTransform  rt,
float  right 
)
static

Sets offset from right side.

Parameters
rtTarget transform.
rightOffset value.

◆ SetTop()

static void Doloro.UIEngine2.RectTransformExtensions.SetTop ( this RectTransform  rt,
float  top 
)
static

Sets offset from top side.

Parameters
rtTarget transform.
topOffset value.

◆ SetZeroOffset()

static void Doloro.UIEngine2.RectTransformExtensions.SetZeroOffset ( this RectTransform  rt)
static

Drops offset to the 0.

Parameters
rtTarget transform.

The documentation for this class was generated from the following file: