adding range type
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66625 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
29
include/wx/range.h
Normal file
29
include/wx/range.h
Normal file
@@ -0,0 +1,29 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: wx/range.h
|
||||
// Purpose: Range Value Class
|
||||
// Author: Stefan Csomor
|
||||
// Modified by:
|
||||
// Created: 2011-01-07
|
||||
// RCS-ID: $Id$
|
||||
// Copyright: (c) 2011 Stefan Csomor
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef _WX_RANGE_H_
|
||||
#define _WX_RANGE_H_
|
||||
|
||||
#include "wx/defs.h"
|
||||
|
||||
class wxRange
|
||||
{
|
||||
public :
|
||||
wxRange(): m_minVal(0), m_maxVal(0) {}
|
||||
wxRange( int minVal, int maxVal) : m_minVal(minVal), m_maxVal(maxVal) {}
|
||||
int GetMin() const { return m_minVal; }
|
||||
int GetMax() const { return m_maxVal; }
|
||||
private :
|
||||
int m_minVal;
|
||||
int m_maxVal;
|
||||
};
|
||||
|
||||
#endif // _WX_RANGE_H_
|
Reference in New Issue
Block a user