40 enum class step_direction
63 value_type
step()
const;
65 value_type
value()
const;
66 void set_value(value_type aValue,
bool aNotify =
true);
67 std::string
const&
format()
const;
85 void do_step(step_direction aDirection, uint32_t aAmount = 1);
86 std::optional<value_type> string_to_value(std::string
const& aString)
const;
88 void update_size_hint();
99 std::optional<widget_timer> iStepper;
100 mutable std::optional<std::pair<color, texture>> iUpArrow;
101 mutable std::optional<std::pair<color, texture>> iDownArrow;
107 std::optional<size_hint> iTextBoxSizeHint;
108 bool iDontSetText =
false;
111 extern template class basic_spin_box<int8_t>;
112 extern template class basic_spin_box<uint8_t>;
113 extern template class basic_spin_box<int16_t>;
114 extern template class basic_spin_box<uint16_t>;
115 extern template class basic_spin_box<int32_t>;
116 extern template class basic_spin_box<uint32_t>;
117 extern template class basic_spin_box<int64_t>;
118 extern template class basic_spin_box<uint64_t>;
119 extern template class basic_spin_box<float>;
120 extern template class basic_spin_box<double>;
color frame_color() const override
void set_step(value_type aStep)
value_type maximum() const
void set_maximum(value_type aMaximum)
static constexpr size INTERNAL_SPACING
void set_value(value_type aValue, bool aNotify=true)
void set_text_box_size_hint(const std::optional< size_hint > &aSizeHint)
color palette_color(color_role aColorRole) const override
static constexpr size SPIN_BUTTON_MINIMUM_SIZE
void set_minimum(value_type aMinimum)
void set_format(std::string const &aFormat)
value_type minimum() const
neogfx::size_policy size_policy() const override
const line_edit & text_box() const
std::string const & valid_text_characters() const
const std::optional< size_hint > & text_box_size_hint() const
bool mouse_wheel_scrolled(mouse_wheel aWheel, const point &aPosition, delta aDelta, key_modifiers_e aKeyModifiers) override
std::string const & format() const
std::string value_to_string() const
bool key_pressed(scan_code_e aScanCode, key_code_e aKeyCode, key_modifiers_e aKeyModifiers) override
anchor_changed define_event(AppearanceChanged, appearance_changed) public typedef std::size_t position_type
basic_spin_box< float > float_spin_box
basic_spin_box< uint16_t > uint16_spin_box
basic_spin_box< int32_t > int32_spin_box
basic_spin_box< uint64_t > uint64_spin_box
basic_spin_box< uint32_t > uint32_spin_box
basic_spin_box< double > double_spin_box
basic_spin_box< int16_t > int16_spin_box
basic_spin_box< uint8_t > uint8_spin_box
basic_spin_box< int64_t > int64_spin_box
basic_spin_box< int8_t > int8_spin_box
#define define_event(name, declName,...)