Add Get{Min,Max,Range}() to numeric validator classes

Just provide accessors matching the existing setters.

Closes https://github.com/wxWidgets/wxWidgets/pull/1287,
https://github.com/wxWidgets/wxWidgets/pull/1288
This commit is contained in:
Vsevolod V Gromov
2019-04-10 15:31:46 +03:00
committed by Vadim Zeitlin
parent 3674bd1c1f
commit 20c7421a67
2 changed files with 40 additions and 0 deletions

View File

@@ -89,6 +89,13 @@ public:
*/
void SetMin(ValueType min);
/**
Gets the minimal value accepted by the validator.
@since 3.1.3
*/
ValueType GetMin() const;
/**
Sets the maximal value accepted by the validator.
@@ -96,6 +103,13 @@ public:
*/
void SetMax(ValueType max);
/**
Gets the maximum value accepted by the validator.
@since 3.1.3
*/
ValueType GetMax() const;
/**
Sets both minimal and maximal values accepted by the validator.
@@ -103,6 +117,12 @@ public:
*/
void SetRange(ValueType min, ValueType max);
/**
Gets both minimal and maximal values accepted by the validator.
@since 3.1.3
*/
void GetRange(ValueType& min, ValueType& max) const;
/**
Change the validator style.