]> git.saurik.com Git - wxWidgets.git/blame - include/wx/os2/gauge.h
removing dependancy on mac headers from public wx headers (eventually adding wx/
[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
17WXDLLEXPORT_DATA(extern const char*) wxGaugeNameStr;
18
0e320a79
DW
19class WXDLLEXPORT wxGauge: public wxControl
20{
3c299c3a
DW
21public:
22 inline wxGauge() { m_nRangeMax = 0; m_nGaugePos = 0; }
0e320a79 23
3c299c3a
DW
24 inline wxGauge( wxWindow* pParent
25 ,wxWindowID vId
26 ,int nRange
27 ,const wxPoint& rPos = wxDefaultPosition
28 ,const wxSize& rSize = wxDefaultSize
29 ,long lStyle = wxGA_HORIZONTAL
57c4d796 30#if wxUSE_VALIDATORS
3c299c3a 31 ,const wxValidator& rValidator = wxDefaultValidator
57c4d796 32#endif
3c299c3a
DW
33 ,const wxString& rsName = wxGaugeNameStr
34 )
35 {
36 Create( pParent
37 ,vId
38 ,nRange
39 ,rPos
40 ,rSize
41 ,lStyle
42#if wxUSE_VALIDATORS
43 ,rValidator
44#endif
45 ,rsName
46 );
47 }
0e320a79 48
3c299c3a
DW
49 bool Create( wxWindow* pParent
50 ,wxWindowID vId
51 ,int nRange
52 ,const wxPoint& rPos = wxDefaultPosition
53 ,const wxSize& rSize = wxDefaultSize
54 ,long lStyle = wxGA_HORIZONTAL
57c4d796 55#if wxUSE_VALIDATORS
3c299c3a 56 ,const wxValidator& rValidator = wxDefaultValidator
57c4d796 57#endif
3c299c3a
DW
58 ,const wxString& rsName = wxGaugeNameStr
59 );
0e320a79 60
3c299c3a
DW
61 int GetShadowWidth(void) const;
62 int GetBezelFace(void) const;
63 int GetRange(void) const;
64 int GetValue(void) const;
0e320a79 65
3c299c3a
DW
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);
0e320a79 72
3c299c3a
DW
73 inline virtual bool AcceptsFocus(void) const { return FALSE; }
74 inline virtual void Command(wxCommandEvent& WXUNUSED(rEvent)) {};
0e320a79 75
3c299c3a
DW
76protected:
77 int m_nRangeMax;
78 int m_nGaugePos;
0e320a79 79
3c299c3a
DW
80private:
81 DECLARE_DYNAMIC_CLASS(wxGauge)
82}; // end of CLASS wxGauge
83
84#endif // _WX_GAUGE_H_
0e320a79 85