]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/_gauge.i
Applied patch [ 845171 ] Use transparancy mask in wxBitmapShape
[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 %{
19 DECLARE_DEF_STRING(GaugeNameStr);
20 %}
21
22 %newgroup
23
24 enum {
25 wxGA_HORIZONTAL,
26 wxGA_VERTICAL,
27 wxGA_SMOOTH,
28 wxGA_PROGRESSBAR // obsolete
29 };
30
31 //---------------------------------------------------------------------------
32
33
34 class wxGauge : public wxControl {
35 public:
36 %addtofunc wxGauge "self._setOORInfo(self)"
37 %addtofunc wxGauge() ""
38
39 wxGauge(wxWindow* parent, wxWindowID id, int range,
40 const wxPoint& pos = wxDefaultPosition,
41 const wxSize& size = wxDefaultSize,
42 long style = wxGA_HORIZONTAL,
43 const wxValidator& validator = wxDefaultValidator,
44 const wxString& name = wxPyGaugeNameStr);
45 %name(PreGauge)wxGauge();
46
47 bool Create(wxWindow* parent, wxWindowID id, int range,
48 const wxPoint& pos = wxDefaultPosition,
49 const wxSize& size = wxDefaultSize,
50 long style = wxGA_HORIZONTAL,
51 const wxValidator& validator = wxDefaultValidator,
52 const wxString& name = wxPyGaugeNameStr);
53
54 // set/get the control range
55 virtual void SetRange(int range);
56 virtual int GetRange() const;
57
58 // position
59 virtual void SetValue(int pos);
60 virtual int GetValue() const;
61
62 // simple accessors
63 bool IsVertical() const;
64
65 // appearance params (not implemented for most ports)
66 virtual void SetShadowWidth(int w);
67 virtual int GetShadowWidth() const;
68 virtual void SetBezelFace(int w);
69 virtual int GetBezelFace() const;
70 };
71
72 //---------------------------------------------------------------------------