]>
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 WXDLLEXPORT_DATA(extern const char*) wxGaugeNameStr
;
19 class WXDLLEXPORT wxGauge
: public wxControl
22 inline wxGauge() { m_nRangeMax
= 0; m_nGaugePos
= 0; }
24 inline wxGauge( wxWindow
* pParent
27 ,const wxPoint
& rPos
= wxDefaultPosition
28 ,const wxSize
& rSize
= wxDefaultSize
29 ,long lStyle
= wxGA_HORIZONTAL
31 ,const wxValidator
& rValidator
= wxDefaultValidator
33 ,const wxString
& rsName
= wxGaugeNameStr
49 bool Create( wxWindow
* pParent
52 ,const wxPoint
& rPos
= wxDefaultPosition
53 ,const wxSize
& rSize
= wxDefaultSize
54 ,long lStyle
= wxGA_HORIZONTAL
56 ,const wxValidator
& rValidator
= wxDefaultValidator
58 ,const wxString
& rsName
= wxGaugeNameStr
61 int GetShadowWidth(void) const;
62 int GetBezelFace(void) const;
63 int GetRange(void) const;
64 int GetValue(void) const;
66 bool SetBackgroundColour(const wxColour
& rColour
);
67 void SetBezelFace(int nWidth
);
68 bool SetForegroundColour(const wxColour
& rColour
);
69 void SetRange(int nRange
);
70 void SetShadowWidth(int nWidth
);
71 void SetValue(int nPos
);
73 inline virtual bool AcceptsFocus(void) const { return FALSE
; }
74 inline virtual void Command(wxCommandEvent
& WXUNUSED(rEvent
)) {};
81 DECLARE_DYNAMIC_CLASS(wxGauge
)
82 }; // end of CLASS wxGauge
84 #endif // _WX_GAUGE_H_