]> git.saurik.com Git - wxWidgets.git/blame - include/wx/os2/gauge.h
Fix wxPropertyGrid::GetPropertyRect when the last item is collapsed.
[wxWidgets.git] / include / wx / os2 / gauge.h
CommitLineData
0e320a79 1/////////////////////////////////////////////////////////////////////////////
8df950a6 2// Name: wx/os2/gauge.h
0e320a79 3// Purpose: wxGauge class
0371a691 4// Author: David Webster
0e320a79 5// Modified by:
0371a691 6// Created: 10/06/99
0371a691 7// Copyright: (c) David Webster
65571936 8// Licence: wxWindows licence
0e320a79
DW
9/////////////////////////////////////////////////////////////////////////////
10
11#ifndef _WX_GAUGE_H_
12#define _WX_GAUGE_H_
13
53a2db12 14class WXDLLIMPEXP_CORE wxGauge: public wxGaugeBase
0e320a79 15{
3c299c3a
DW
16public:
17 inline wxGauge() { m_nRangeMax = 0; m_nGaugePos = 0; }
0e320a79 18
3c299c3a
DW
19 inline wxGauge( wxWindow* pParent
20 ,wxWindowID vId
21 ,int nRange
22 ,const wxPoint& rPos = wxDefaultPosition
23 ,const wxSize& rSize = wxDefaultSize
24 ,long lStyle = wxGA_HORIZONTAL
3c299c3a 25 ,const wxValidator& rValidator = wxDefaultValidator
3c299c3a
DW
26 ,const wxString& rsName = wxGaugeNameStr
27 )
28 {
29 Create( pParent
30 ,vId
31 ,nRange
32 ,rPos
33 ,rSize
34 ,lStyle
3c299c3a 35 ,rValidator
3c299c3a
DW
36 ,rsName
37 );
38 }
0e320a79 39
3c299c3a
DW
40 bool Create( wxWindow* pParent
41 ,wxWindowID vId
42 ,int nRange
43 ,const wxPoint& rPos = wxDefaultPosition
44 ,const wxSize& rSize = wxDefaultSize
45 ,long lStyle = wxGA_HORIZONTAL
3c299c3a 46 ,const wxValidator& rValidator = wxDefaultValidator
3c299c3a
DW
47 ,const wxString& rsName = wxGaugeNameStr
48 );
0e320a79 49
3c299c3a
DW
50 int GetShadowWidth(void) const;
51 int GetBezelFace(void) const;
52 int GetRange(void) const;
53 int GetValue(void) const;
0e320a79 54
3c299c3a
DW
55 bool SetBackgroundColour(const wxColour& rColour);
56 void SetBezelFace(int nWidth);
57 bool SetForegroundColour(const wxColour& rColour);
58 void SetRange(int nRange);
59 void SetShadowWidth(int nWidth);
60 void SetValue(int nPos);
0e320a79 61
3c299c3a 62 inline virtual bool AcceptsFocus(void) const { return FALSE; }
6dd0883d 63 inline virtual void Command(wxCommandEvent& WXUNUSED(rEvent)) {}
0e320a79 64
3c299c3a
DW
65protected:
66 int m_nRangeMax;
67 int m_nGaugePos;
713d1441
SN
68 int m_nWidth;
69 int m_nHeight;
70
3b644e98 71 wxSize DoGetBestSize(void) const;
0e320a79 72
3c299c3a
DW
73private:
74 DECLARE_DYNAMIC_CLASS(wxGauge)
75}; // end of CLASS wxGauge
76
77#endif // _WX_GAUGE_H_