5#ifndef DCPP_I_GUI_SPIN_BOX_HPP_INCLUDED
6#define DCPP_I_GUI_SPIN_BOX_HPP_INCLUDED
8#include <duckcpp/core/engine/IGUIElement.hpp>
Single line edit box for editing simple text.
Definition IGUIEditBox.hpp:24
Base class of all GUI elements.
Definition IGUIElement.hpp:24
GUI Environment. Used as factory and manager of all other GUI elements.
Definition IGUIEnvironment.hpp:73
Single line edit box + spin buttons.
Definition IGUISpinBox.hpp:36
virtual dcpp::float32_kt getMax() const =0
get the maximum value which can be used in the spinbox
virtual dcpp::float32_kt getValue() const =0
Get the current value of the spinbox.
virtual dcpp::float32_kt getOldValue() const =0
Gets previous value in EGET_SPINBOX_CHANGED events.
virtual void setValue(dcpp::float32_kt val)=0
set the current value of the spinbox
virtual dcpp::float32_kt getStepSize() const =0
get the current step size
virtual void setStepSize(dcpp::float32_kt step=1.f)=0
Step size by which values are changed when pressing the spinbuttons.
virtual void setDecimalPlaces(dcpp::int32_kt places)=0
IGUISpinBox(IGUIEnvironment *environment, IGUIElement *parent, dcpp::int32_kt id, dcpp::nub::recti rectangle)
constructor
Definition IGUISpinBox.hpp:40
virtual IGUIEditBox * getEditBox() const =0
Access the edit box used in the spin control.
virtual void setRange(dcpp::float32_kt min, dcpp::float32_kt max)=0
set the range of values which can be used in the spinbox
virtual dcpp::float32_kt getValueFor(const wchar_t *text) const =0
Get the value the spinbox would have for the given text.
virtual void setValidateOn(dcpp::uint32_kt validateOn)=0
Sets when the spinbox has to validate entered text.
virtual dcpp::float32_kt getMin() const =0
get the minimum value which can be used in the spinbox
virtual dcpp::uint32_kt getValidateOn() const =0
Gets when the spinbox has to validate entered text.
Rectangle template.
Definition rect.hpp:27
@ EGUIET_SPIN_BOX
A spin box (IGUISpinBox)
Definition EGUIElementTypes.hpp:65
EGUI_SPINBOX_VALIDATION
Definition IGUISpinBox.hpp:19
@ EGUI_SBV_ENTER
Validate when enter was pressed.
Definition IGUISpinBox.hpp:25
@ EGUI_SBV_NEVER
Does not validate typed text, probably a bad idea setting this usually.
Definition IGUISpinBox.hpp:21
@ EGUI_SBV_LOSE_FOCUS
Validate when the editbox loses the focus.
Definition IGUISpinBox.hpp:27
@ EGUI_SBV_CHANGE
Validate on each change. Was default up to Duckcpp 1.8.
Definition IGUISpinBox.hpp:23
As of Duckcpp 1.6, position2d is a synonym for vector2d.
Definition shared_device.hpp:34
unsigned int uint32_kt
32 bit unsigned variable.
Definition irrTypes.hpp:64
float float32_kt
32 bit floating point variable.
Definition irrTypes.hpp:108
signed int int32_kt
32 bit signed variable.
Definition irrTypes.hpp:72