]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/os2/gauge.h
083e9f13a7a0bb87740cda5c4d9ae1bf9d4a5c26
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/os2/gauge.h
3 // Purpose: wxGauge class
4 // Author: David Webster
8 // Copyright: (c) David Webster
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
15 class WXDLLIMPEXP_CORE wxGauge
: public wxGaugeBase
18 inline wxGauge() { m_nRangeMax
= 0; m_nGaugePos
= 0; }
20 inline wxGauge( wxWindow
* pParent
23 ,const wxPoint
& rPos
= wxDefaultPosition
24 ,const wxSize
& rSize
= wxDefaultSize
25 ,long lStyle
= wxGA_HORIZONTAL
26 ,const wxValidator
& rValidator
= wxDefaultValidator
27 ,const wxString
& rsName
= wxGaugeNameStr
41 bool Create( wxWindow
* pParent
44 ,const wxPoint
& rPos
= wxDefaultPosition
45 ,const wxSize
& rSize
= wxDefaultSize
46 ,long lStyle
= wxGA_HORIZONTAL
47 ,const wxValidator
& rValidator
= wxDefaultValidator
48 ,const wxString
& rsName
= wxGaugeNameStr
51 int GetShadowWidth(void) const;
52 int GetBezelFace(void) const;
53 int GetRange(void) const;
54 int GetValue(void) const;
56 bool SetBackgroundColour(const wxColour
& rColour
);
57 void SetBezelFace(int nWidth
);
58 bool SetForegroundColour(const wxColour
& rColour
);
59 void SetRange(int nRange
);
60 void SetShadowWidth(int nWidth
);
61 void SetValue(int nPos
);
63 inline virtual bool AcceptsFocus(void) const { return FALSE
; }
64 inline virtual void Command(wxCommandEvent
& WXUNUSED(rEvent
)) {}
72 wxSize
DoGetBestSize(void) const;
75 DECLARE_DYNAMIC_CLASS(wxGauge
)
76 }; // end of CLASS wxGauge
78 #endif // _WX_GAUGE_H_