Frame

Inherited: Image

Description

Public Methods

Vector4

borderColor () const

float

borderWidth () const

void

boundChanged (const Vector2 & bounds)

Vector4

corners () const

void

setBorderColor (Vector4 color)

void

setBorderWidth (float width)

void

setCorners (Vector4 corners)

void

setMaterial (Material * material)

Static Methods

None

Methods Description

Vector4 Frame::borderColor () const

Returns the border color of the frame.

See also setBorderColor().


float Frame::borderWidth () const

Returns the border width of the frame.

See also setBorderWidth().


void Frame::boundChanged (Vector2 & bounds)

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

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


Vector4 Frame::corners () const

Returns the corners radiuses of the frame.

See also setCorners().


void Frame::setBorderColor (Vector4 color)

Sets the border color of the frame.

See also borderColor().


void Frame::setBorderWidth (float width)

Sets the border width of the frame.

See also borderWidth().


void Frame::setCorners (Vector4 corners)

Sets the corners radiuses of the frame.

See also *corners*().


void Frame::setMaterial (Material * material)

Reimplements: Image::setMaterial(Material *material).

Sets the material for the frame and updates material properties based on corner radius, border width, and border color.