RectTransform

Inherited: Transform

Description

The ProgressBar class is designed to provide a graphical representation of progress with customizable appearance and range. It supports features such as setting the minimum and maximum values, adjusting the progress value, and specifying visual elements for background and progress indicator.

Public Methods

bool

isHovered (float x, float y) const

Layout *

layout () const

Vector2

maxAnchors () const

Vector2

minAnchors () const

Vector2

offsetMax () const

Vector2

offsetMin () const

Vector2

pivot () const

void

setAnchors (const Vector2 minimum, const Vector2 maximum)

void

setLayout (Layout * layout)

void

setMaxAnchors (const Vector2 anchors)

void

setMinAnchors (const Vector2 anchors)

void

setOffsetMax (const Vector2 offset)

void

setOffsetMin (const Vector2 offset)

void

setOffsets (const Vector2 minimum, const Vector2 maximum)

void

setPivot (const Vector2 pivot)

void

setSize (const Vector2 size)

Vector2

size () const

void

subscribe (Widget * widget)

void

unsubscribe (Widget * widget)

Matrix4

worldTransform () const

Static Methods

None

Methods Description

bool RectTransform::isHovered (float x, float y) const

Returns true if the point with coodinates x and y is within the bounds, otherwise false.


:ref:`Layout<api_Layout>`* RectTransform::layout () const

Returns the layout assigned to the RectTransform.

See also setLayout().


Vector2 RectTransform::maxAnchors () const

Returns the maximum anchors of the RectTransform.

See also setMaxAnchors().


Vector2 RectTransform::minAnchors () const

Returns the minimum anchors of the RectTransform.

See also setMinAnchors().


Vector2 RectTransform::offsetMax () const

Returns the top-right offset of the RectTransform.

See also setOffsetMax().


Vector2 RectTransform::offsetMin () const

Returns the bottom-left offset of the RectTransform.

See also setOffsetMin().


Vector2 RectTransform::pivot () const

Returns the pivot point of the RectTransform.

See also setPivot().


void RectTransform::setAnchors (Vector2 minimum, Vector2 maximum)

Sets both the minimum and maximum anchors of the RectTransform.


void RectTransform::setLayout (Layout * layout)

Sets the layout for the RectTransform.

See also *layout*().


void RectTransform::setMaxAnchors (Vector2 anchors)

Sets the maximum anchors of the RectTransform.

See also maxAnchors().


void RectTransform::setMinAnchors (Vector2 anchors)

Sets the minimum anchors of the RectTransform.

See also minAnchors().


void RectTransform::setOffsetMax (Vector2 offset)

Sets the top-right offset of the RectTransform.

See also *offset*Max().


void RectTransform::setOffsetMin (Vector2 offset)

Sets the bottom-left offset of the RectTransform.

See also *offset*Min().


void RectTransform::setOffsets (Vector2 minimum, Vector2 maximum)

Sets both the minimum and maximum offsets of the RectTransform.


void RectTransform::setPivot (Vector2 pivot)

Sets the pivot point of the RectTransform.

See also *pivot*().


void RectTransform::setSize (Vector2 size)

Sets the size of the RectTransform.

See also *size*().


Vector2 RectTransform::size () const

Returns the size of the associated UI element.

See also setSize().


void RectTransform::subscribe (Widget * widget)

Subscribes a widget to changes in the RectTransform.


void RectTransform::unsubscribe (Widget * widget)

Unsubscribes a widget from changes in the RectTransform.


Matrix4 RectTransform::worldTransform () const

Reimplements: Transform::worldTransform() const.

Returns the world transformation matrix of the RectTransform.