]> git.saurik.com Git - wxWidgets.git/blame - include/wx/os2/gauge.h
Added NormalizeFontSizes which will set the html font sizes based on
[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 8// Copyright: (c) David Webster
65571936 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
3c299c3a 28 ,const wxValidator& rValidator = wxDefaultValidator
3c299c3a
DW
29 ,const wxString& rsName = wxGaugeNameStr
30 )
31 {
32 Create( pParent
33 ,vId
34 ,nRange
35 ,rPos
36 ,rSize
37 ,lStyle
3c299c3a 38 ,rValidator
3c299c3a
DW
39 ,rsName
40 );
41 }
0e320a79 42
3c299c3a
DW
43 bool Create( wxWindow* pParent
44 ,wxWindowID vId
45 ,int nRange
46 ,const wxPoint& rPos = wxDefaultPosition
47 ,const wxSize& rSize = wxDefaultSize
48 ,long lStyle = wxGA_HORIZONTAL
3c299c3a 49 ,const wxValidator& rValidator = wxDefaultValidator
3c299c3a
DW
50 ,const wxString& rsName = wxGaugeNameStr
51 );
0e320a79 52
3c299c3a
DW
53 int GetShadowWidth(void) const;
54 int GetBezelFace(void) const;
55 int GetRange(void) const;
56 int GetValue(void) const;
0e320a79 57
3c299c3a
DW
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);
0e320a79 64
3c299c3a
DW
65 inline virtual bool AcceptsFocus(void) const { return FALSE; }
66 inline virtual void Command(wxCommandEvent& WXUNUSED(rEvent)) {};
0e320a79 67
3c299c3a
DW
68protected:
69 int m_nRangeMax;
70 int m_nGaugePos;
0e320a79 71
3c299c3a
DW
72private:
73 DECLARE_DYNAMIC_CLASS(wxGauge)
74}; // end of CLASS wxGauge
75
76#endif // _WX_GAUGE_H_
0e320a79 77