]> git.saurik.com Git - wxWidgets.git/blob - include/wx/range.h
Don't check for tr1/type_traits in configure if type_traits was found.
[wxWidgets.git] / include / wx / range.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/range.h
3 // Purpose: Range Value Class
4 // Author: Stefan Csomor
5 // Modified by:
6 // Created: 2011-01-07
7 // Copyright: (c) 2011 Stefan Csomor
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11 #ifndef _WX_RANGE_H_
12 #define _WX_RANGE_H_
13
14 #include "wx/defs.h"
15
16 class wxRange
17 {
18 public :
19 wxRange(): m_minVal(0), m_maxVal(0) {}
20 wxRange( int minVal, int maxVal) : m_minVal(minVal), m_maxVal(maxVal) {}
21 int GetMin() const { return m_minVal; }
22 int GetMax() const { return m_maxVal; }
23 private :
24 int m_minVal;
25 int m_maxVal;
26 };
27
28 #endif // _WX_RANGE_H_