Frame

Inherited: None

Description

The Frame class represents a graphical frame or border used in user interfaces. It is designed to visually group or contain other UI elements, providing a clear separation or visual boundary. The frame can have customizable corners, border width, and border color, making it a versatile element for organizing and structuring content within an application.

Public Methods

Vector4

bottomColor () const

void

boundChanged (const Vector2 & size)

Vector4

color () const

Vector4

corners () const

Vector4

leftColor () const

Vector4

rightColor () const

void

setBorderColor (const Vector4 & color)

void

setBottomColor (const Vector4 & color)

void

setColor (const Vector4 & color)

void

setCorners (const Vector4 & corners)

void

setLeftColor (const Vector4 & color)

void

setRightColor (const Vector4 & color)

void

setTopColor (const Vector4 & color)

Vector4

topColor () const

Static Methods

None

Methods Description

Vector4 Frame::bottomColor () const

Returns the bottom border color of the frame.

See also setBottomColor().


void Frame::boundChanged (Vector2 & size)

Reimplements: Widget::boundChanged(const Vector2 &size).

Callback method called when the size of the frame changed. Updates material properties based on corner radius and border width.


Vector4 Frame::color () const

Returns the color of the frame to be drawn.

See also setColor().


Vector4 Frame::corners () const

Returns the corners radiuses of the frame.

See also setCorners().


Vector4 Frame::leftColor () const

Returns the left border color of the frame.

See also setLeftColor().


Vector4 Frame::rightColor () const

Returns the right border color of the frame.

See also setRightColor().


void Frame::setBorderColor (Vector4 & color)

Sets the border color of the frame.


void Frame::setBottomColor (Vector4 & color)

Sets the bottom border color of the frame.

See also bottomColor().


void Frame::setColor (Vector4 & color)

Changes the color of the frame to be drawn.

See also color().


void Frame::setCorners (Vector4 & corners)

Sets the corners radiuses of the frame.

See also corners().


void Frame::setLeftColor (Vector4 & color)

Sets the left border color of the frame.

See also leftColor().


void Frame::setRightColor (Vector4 & color)

Sets the right border color of the frame.

See also rightColor().


void Frame::setTopColor (Vector4 & color)

Sets the top border color of the frame.

See also topColor().


Vector4 Frame::topColor () const

Returns the top border color of the frame.

See also setTopColor().