]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/os2/gauge.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/os2/gauge.h
3 // Purpose: wxGauge class
4 // Author: David Webster
7 // Copyright: (c) David Webster
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
14 class WXDLLIMPEXP_CORE wxGauge
: public wxGaugeBase
17 inline wxGauge() { m_nRangeMax
= 0; m_nGaugePos
= 0; }
19 inline wxGauge( wxWindow
* pParent
22 ,const wxPoint
& rPos
= wxDefaultPosition
23 ,const wxSize
& rSize
= wxDefaultSize
24 ,long lStyle
= wxGA_HORIZONTAL
25 ,const wxValidator
& rValidator
= wxDefaultValidator
26 ,const wxString
& rsName
= wxGaugeNameStr
40 bool Create( wxWindow
* pParent
43 ,const wxPoint
& rPos
= wxDefaultPosition
44 ,const wxSize
& rSize
= wxDefaultSize
45 ,long lStyle
= wxGA_HORIZONTAL
46 ,const wxValidator
& rValidator
= wxDefaultValidator
47 ,const wxString
& rsName
= wxGaugeNameStr
50 int GetShadowWidth(void) const;
51 int GetBezelFace(void) const;
52 int GetRange(void) const;
53 int GetValue(void) const;
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
);
62 inline virtual bool AcceptsFocus(void) const { return FALSE
; }
63 inline virtual void Command(wxCommandEvent
& WXUNUSED(rEvent
)) {}
71 wxSize
DoGetBestSize(void) const;
74 DECLARE_DYNAMIC_CLASS(wxGauge
)
75 }; // end of CLASS wxGauge
77 #endif // _WX_GAUGE_H_