]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/os2/gauge.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxGauge class
4 // Author: David Webster
8 // Copyright: (c) David Webster
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
15 #include "wx/control.h"
17 class WXDLLEXPORT wxGauge
: public wxControl
20 inline wxGauge() { m_nRangeMax
= 0; m_nGaugePos
= 0; }
22 inline wxGauge( wxWindow
* pParent
25 ,const wxPoint
& rPos
= wxDefaultPosition
26 ,const wxSize
& rSize
= wxDefaultSize
27 ,long lStyle
= wxGA_HORIZONTAL
28 ,const wxValidator
& rValidator
= wxDefaultValidator
29 ,const wxString
& rsName
= wxGaugeNameStr
43 bool Create( wxWindow
* pParent
46 ,const wxPoint
& rPos
= wxDefaultPosition
47 ,const wxSize
& rSize
= wxDefaultSize
48 ,long lStyle
= wxGA_HORIZONTAL
49 ,const wxValidator
& rValidator
= wxDefaultValidator
50 ,const wxString
& rsName
= wxGaugeNameStr
53 int GetShadowWidth(void) const;
54 int GetBezelFace(void) const;
55 int GetRange(void) const;
56 int GetValue(void) const;
58 bool SetBackgroundColour(const wxColour
& rColour
);
59 void SetBezelFace(int nWidth
);
60 bool SetForegroundColour(const wxColour
& rColour
);
61 void SetRange(int nRange
);
62 void SetShadowWidth(int nWidth
);
63 void SetValue(int nPos
);
65 inline virtual bool AcceptsFocus(void) const { return FALSE
; }
66 inline virtual void Command(wxCommandEvent
& WXUNUSED(rEvent
)) {};
74 wxSize
wxGauge::DoGetBestSize(void) const;
77 DECLARE_DYNAMIC_CLASS(wxGauge
)
78 }; // end of CLASS wxGauge
80 #endif // _WX_GAUGE_H_