]> git.saurik.com Git - wxWidgets.git/blame - include/wx/os2/gauge.h
tiny fixes
[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
19// Group box
20class WXDLLEXPORT wxGauge: public wxControl
21{
22 DECLARE_DYNAMIC_CLASS(wxGauge)
23 public:
24 inline wxGauge() { m_rangeMax = 0; m_gaugePos = 0; }
25
26 inline wxGauge(wxWindow *parent, wxWindowID id,
27 int range,
28 const wxPoint& pos = wxDefaultPosition,
29 const wxSize& size = wxDefaultSize,
30 long style = wxGA_HORIZONTAL,
31 const wxValidator& validator = wxDefaultValidator,
32 const wxString& name = wxGaugeNameStr)
33 {
34 Create(parent, id, range, pos, size, style, validator, name);
35 }
36
37 bool Create(wxWindow *parent, wxWindowID id,
38 int range,
39 const wxPoint& pos = wxDefaultPosition,
40 const wxSize& size = wxDefaultSize,
41 long style = wxGA_HORIZONTAL,
42 const wxValidator& validator = wxDefaultValidator,
43 const wxString& name = wxGaugeNameStr);
44
45 void SetShadowWidth(int w);
46 void SetBezelFace(int w);
47 void SetRange(int r);
48 void SetValue(int pos);
49
50 int GetShadowWidth() const ;
51 int GetBezelFace() const ;
52 int GetRange() const ;
53 int GetValue() const ;
54
0371a691
DW
55 bool SetForegroundColour(const wxColour& col);
56 bool SetBackgroundColour(const wxColour& col);
0e320a79
DW
57
58 virtual void Command(wxCommandEvent& WXUNUSED(event)) {} ;
59
60 protected:
61 int m_rangeMax;
62 int m_gaugePos;
0e320a79
DW
63};
64
65#endif
66 // _WX_GAUGE_H_