]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/_gauge.i
Use a compatible bitmap if a depth of -1 is given
[wxWidgets.git] / wxPython / src / _gauge.i
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: _gauge.i
3 // Purpose: SWIG interface defs for wxGauge
4 //
5 // Author: Robin Dunn
6 //
7 // Created: 10-June-1998
8 // RCS-ID: $Id$
9 // Copyright: (c) 2003 by Total Control Software
10 // Licence: wxWindows license
11 /////////////////////////////////////////////////////////////////////////////
12
13 // Not a %module
14
15
16 //---------------------------------------------------------------------------
17
18 MAKE_CONST_WXSTRING(GaugeNameStr);
19
20 %newgroup
21
22 enum {
23 wxGA_HORIZONTAL,
24 wxGA_VERTICAL,
25 wxGA_SMOOTH,
26 wxGA_PROGRESSBAR // obsolete
27 };
28
29 //---------------------------------------------------------------------------
30
31
32 class wxGauge : public wxControl {
33 public:
34 %pythonAppend wxGauge "self._setOORInfo(self)"
35 %pythonAppend wxGauge() ""
36
37 wxGauge(wxWindow* parent, wxWindowID id, int range,
38 const wxPoint& pos = wxDefaultPosition,
39 const wxSize& size = wxDefaultSize,
40 long style = wxGA_HORIZONTAL,
41 const wxValidator& validator = wxDefaultValidator,
42 const wxString& name = wxPyGaugeNameStr);
43 %name(PreGauge)wxGauge();
44
45 bool Create(wxWindow* parent, wxWindowID id, int range,
46 const wxPoint& pos = wxDefaultPosition,
47 const wxSize& size = wxDefaultSize,
48 long style = wxGA_HORIZONTAL,
49 const wxValidator& validator = wxDefaultValidator,
50 const wxString& name = wxPyGaugeNameStr);
51
52 // set/get the control range
53 virtual void SetRange(int range);
54 virtual int GetRange() const;
55
56 // position
57 virtual void SetValue(int pos);
58 virtual int GetValue() const;
59
60 // simple accessors
61 bool IsVertical() const;
62
63 // appearance params (not implemented for most ports)
64 virtual void SetShadowWidth(int w);
65 virtual int GetShadowWidth() const;
66 virtual void SetBezelFace(int w);
67 virtual int GetBezelFace() const;
68 };
69
70 //---------------------------------------------------------------------------