]> git.saurik.com Git - wxWidgets.git/blob - include/wx/mac/classic/gauge.h
Change wxFSFile::DetachStream to NULL the m_Stream member. Add SetStream().
[wxWidgets.git] / include / wx / mac / classic / gauge.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: gauge.h
3 // Purpose: wxGauge class
4 // Author: Stefan Csomor
5 // Modified by:
6 // Created: 1998-01-01
7 // RCS-ID: $Id$
8 // Copyright: (c) Stefan Csomor
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_GAUGE_H_
13 #define _WX_GAUGE_H_
14
15 #include "wx/control.h"
16
17 WXDLLEXPORT_DATA(extern const wxChar) wxGaugeNameStr[];
18
19 // Group box
20 class WXDLLEXPORT wxGauge: public wxGaugeBase
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
55 void Pulse();
56
57 virtual void Command(wxCommandEvent& WXUNUSED(event)) {} ;
58
59 protected:
60 int m_rangeMax;
61 int m_gaugePos;
62 };
63
64 #endif
65 // _WX_GAUGE_H_