]> git.saurik.com Git - wxWidgets.git/blob - src/stubs/gauge.cpp
More debug code
[wxWidgets.git] / src / stubs / gauge.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: gauge.cpp
3 // Purpose: wxGauge class
4 // Author: AUTHOR
5 // Modified by:
6 // Created: ??/??/98
7 // RCS-ID: $Id$
8 // Copyright: (c) AUTHOR
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifdef __GNUG__
13 #pragma implementation "gauge.h"
14 #endif
15
16 #include "wx/gauge.h"
17
18 IMPLEMENT_DYNAMIC_CLASS(wxGauge, wxControl)
19
20 bool wxGauge::Create(wxWindow *parent, wxWindowID id,
21 int range,
22 const wxPoint& pos,
23 const wxSize& size,
24 long style,
25 const wxValidator& validator,
26 const wxString& name)
27 {
28 SetName(name);
29 SetValidator(validator);
30 m_rangeMax = range;
31 m_windowStyle = style;
32
33 if (parent) parent->AddChild(this);
34
35 if ( id == -1 )
36 m_windowId = (int)NewControlId();
37 else
38 m_windowId = id;
39
40
41 // TODO
42 return FALSE;
43 }
44
45 void wxGauge::SetSize(int x, int y, int width, int height, int sizeFlags)
46 {
47 // TODO
48 }
49
50 void wxGauge::SetShadowWidth(int w)
51 {
52 // TODO optional
53 }
54
55 void wxGauge::SetBezelFace(int w)
56 {
57 // TODO optional
58 }
59
60 void wxGauge::SetRange(int r)
61 {
62 m_rangeMax = r;
63 // TODO
64 }
65
66 void wxGauge::SetValue(int pos)
67 {
68 m_gaugePos = pos;
69 // TODO
70 }
71
72 int wxGauge::GetShadowWidth() const
73 {
74 // TODO optional
75 return 0;
76 }
77
78 int wxGauge::GetBezelFace() const
79 {
80 // TODO optional
81 return 0;
82 }
83
84 int wxGauge::GetRange() const
85 {
86 return m_rangeMax;
87 }
88
89 int wxGauge::GetValue() const
90 {
91 return m_gaugePos;
92 }
93