FloatInput

Inherited: None

Description

The FloatInput class represents a user interface element designed for entering and displaying floating-point values. This class is used in graphical user interface (GUI) applications where users need to input decimal numbers, such as 3.14, 0.001, or -42.56.

Public Methods

Vector4

corners () const

Button *

decreaseButton () const

Button *

increaseButton () const

LineEdit *

input () const

float

maximum () const

float

minimum () const

void

onDecrease ()

void

onEditingFinished ()

void

onIncrease ()

void

setCorners (Vector4 corners)

void

setDecreaseButton (Button * button)

void

setIncreaseButton (Button * button)

void

setInput (LineEdit * input)

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().


Button * FloatInput::decreaseButton () const

Returns the decrease value button.

See also setDecreaseButton().


Button * FloatInput::increaseButton () const

Returns the increase value button.

See also setIncreaseButton().


LineEdit * FloatInput::input () const

Returns the input field component.

See also setInput().


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::setDecreaseButton (Button * button)

Sets the decrease value button.

See also decreaseButton().


void FloatInput::setIncreaseButton (Button * button)

Sets the increase value button.

See also increaseButton().


void FloatInput::setInput (LineEdit * input)

Sets the input field component.

See also input().


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().