]>
git.saurik.com Git - wxWidgets.git/blob - src/qt/gauge.cpp
1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling
7 // Copyright: (c) 1998 Robert Roebling, Julian Smart and Markus Holzem
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
12 #pragma implementation "gauge.h"
17 //-----------------------------------------------------------------------------
19 //-----------------------------------------------------------------------------
21 IMPLEMENT_DYNAMIC_CLASS(wxGauge
,wxControl
)
23 bool wxGauge::Create( wxWindow
*parent
, wxWindowID id
, int range
,
24 const wxPoint
& pos
, const wxSize
& size
,
25 long style
, const wxString
& name
)
30 void wxGauge::SetRange( int r
)
33 if (m_gaugePos
> m_rangeMax
) m_gaugePos
= m_rangeMax
;
36 void wxGauge::SetValue( int pos
)
39 if (m_gaugePos
> m_rangeMax
) m_gaugePos
= m_rangeMax
;
42 int wxGauge::GetRange(void) const
47 int wxGauge::GetValue(void) const