]> git.saurik.com Git - wxWidgets.git/blame - include/wx/os2/gauge.h
typo in style definition fixed
[wxWidgets.git] / include / wx / os2 / gauge.h
CommitLineData
0e320a79
DW
1/////////////////////////////////////////////////////////////////////////////
2// Name: gauge.h
3// Purpose: wxGauge class
0371a691 4// Author: David Webster
0e320a79 5// Modified by:
0371a691 6// Created: 10/06/99
0e320a79 7// RCS-ID: $Id$
0371a691
DW
8// Copyright: (c) David Webster
9// Licence: wxWindows licence
0e320a79
DW
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_GAUGE_H_
13#define _WX_GAUGE_H_
14
0e320a79
DW
15#include "wx/control.h"
16
0e320a79
DW
17class WXDLLEXPORT wxGauge: public wxControl
18{
3c299c3a
DW
19public:
20 inline wxGauge() { m_nRangeMax = 0; m_nGaugePos = 0; }
0e320a79 21
3c299c3a
DW
22 inline wxGauge( wxWindow* pParent
23 ,wxWindowID vId
24 ,int nRange
25 ,const wxPoint& rPos = wxDefaultPosition
26 ,const wxSize& rSize = wxDefaultSize
27 ,long lStyle = wxGA_HORIZONTAL
57c4d796 28#if wxUSE_VALIDATORS
3c299c3a 29 ,const wxValidator& rValidator = wxDefaultValidator
57c4d796 30#endif
3c299c3a
DW
31 ,const wxString& rsName = wxGaugeNameStr
32 )
33 {
34 Create( pParent
35 ,vId
36 ,nRange
37 ,rPos
38 ,rSize
39 ,lStyle
40#if wxUSE_VALIDATORS
41 ,rValidator
42#endif
43 ,rsName
44 );
45 }
0e320a79 46
3c299c3a
DW
47 bool Create( wxWindow* pParent
48 ,wxWindowID vId
49 ,int nRange
50 ,const wxPoint& rPos = wxDefaultPosition
51 ,const wxSize& rSize = wxDefaultSize
52 ,long lStyle = wxGA_HORIZONTAL
57c4d796 53#if wxUSE_VALIDATORS
3c299c3a 54 ,const wxValidator& rValidator = wxDefaultValidator
57c4d796 55#endif
3c299c3a
DW
56 ,const wxString& rsName = wxGaugeNameStr
57 );
0e320a79 58
3c299c3a
DW
59 int GetShadowWidth(void) const;
60 int GetBezelFace(void) const;
61 int GetRange(void) const;
62 int GetValue(void) const;
0e320a79 63
3c299c3a
DW
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);
0e320a79 70
3c299c3a
DW
71 inline virtual bool AcceptsFocus(void) const { return FALSE; }
72 inline virtual void Command(wxCommandEvent& WXUNUSED(rEvent)) {};
0e320a79 73
3c299c3a
DW
74protected:
75 int m_nRangeMax;
76 int m_nGaugePos;
0e320a79 77
3c299c3a
DW
78private:
79 DECLARE_DYNAMIC_CLASS(wxGauge)
80}; // end of CLASS wxGauge
81
82#endif // _WX_GAUGE_H_
0e320a79 83