FloatInput

Inherited: Widget

Description

The FloatInput class provides a user-friendly interface for entering and displaying floating-point values.

Public Methods

Vector4

corners () const

float

maximum () const

float

minimum () const

void

onDecrease ()

void

onEditingFinished ()

void

onIncrease ()

void

setCorners (Vector4 corners)

void

setMaximum (float maximum)

void

setMinimum (float minimum)

void

setSingleStep (float step)

void

setValue (float value)

float

singleStep () const

float

value () const

Static Methods

None

Methods Description

Vector4 FloatInput::corners () const

Returns the corners radiuses.

See also setCorners().


float FloatInput::maximum () const

Returns the maximum allowed value.

See also setMaximum().


float FloatInput::minimum () const

Returns the minimum allowed value.

See also setMinimum().


void FloatInput::onDecrease ()

Slot method called when the decrease button is clicked. Decrements the FloatInput value.


void FloatInput::onEditingFinished ()

Slot method called when editing of the input text is finished. Updates the FloatInput value based on the entered text.


void FloatInput::onIncrease ()

Slot method called when the increase button is clicked. Increments the FloatInput value.


void FloatInput::setCorners (Vector4 corners)

Sets the corners radiuses.

See also *corners*().


void FloatInput::setMaximum (float maximum)

Sets the maximum allowed value.

See also *maximum*().


void FloatInput::setMinimum (float minimum)

Sets the minimum allowed value.

See also *minimum*().


void FloatInput::setSingleStep (float step)

Sets the single step value for incrementing or decrementing the FloatInput value.

See also singleStep().


void FloatInput::setValue (float value)

Sets the value of the FloatInput within the specified minimum and maximum limits.

See also *value*().


float FloatInput::singleStep () const

Returns the single step value for incrementing or decrementing the FloatInput value.

See also setSingleStep().


float FloatInput::value () const

Returns the current value of the FloatInput.

See also setValue().