24class API_AUI_VIEWS ANumberPicker :
public AViewContainerBase {
28 ANumberPicker& mPicker;
31 ANumberPickerField(::ANumberPicker& picker) : mPicker(picker) {}
33 virtual ~ANumberPickerField() =
default;
35 void onKeyRepeat(AInput::Key key)
override;
38 bool isValidText(
const AString& text)
override;
55 &ANumberPicker::getValue,
56 &ANumberPicker::setValue,
61 void setValue(int64_t v);
63 int64_t getValue()
const;
65 void setSuffix(
const AString& suffix);
67 [[nodiscard]]
const AString& text() const noexcept {
return mTextField->text(); }
73 void changeBy(int64_t v);
75 [[nodiscard]] int64_t getMin()
const {
return mMin; }
77 [[nodiscard]] int64_t getMax()
const {
return mMax; }
79 void setMin(int64_t min);
81 void setMax(int64_t max);
Text field implementation.
Definition AAbstractTextField.h:26