]>
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
29 ,const wxValidator
& rValidator
= wxDefaultValidator
31 ,const wxString
& rsName
= wxGaugeNameStr
47 bool Create( wxWindow
* pParent
50 ,const wxPoint
& rPos
= wxDefaultPosition
51 ,const wxSize
& rSize
= wxDefaultSize
52 ,long lStyle
= wxGA_HORIZONTAL
54 ,const wxValidator
& rValidator
= wxDefaultValidator
56 ,const wxString
& rsName
= wxGaugeNameStr
59 int GetShadowWidth(void) const;
60 int GetBezelFace(void) const;
61 int GetRange(void) const;
62 int GetValue(void) const;
64 bool SetBackgroundColour(const wxColour
& rColour
);
65 void SetBezelFace(int nWidth
);
66 bool SetForegroundColour(const wxColour
& rColour
);
67 void SetRange(int nRange
);
68 void SetShadowWidth(int nWidth
);
69 void SetValue(int nPos
);
71 inline virtual bool AcceptsFocus(void) const { return FALSE
; }
72 inline virtual void Command(wxCommandEvent
& WXUNUSED(rEvent
)) {};
79 DECLARE_DYNAMIC_CLASS(wxGauge
)
80 }; // end of CLASS wxGauge
82 #endif // _WX_GAUGE_H_