1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: SWIG interface defs for wxGauge
7 // Created: 10-June-1998
9 // Copyright: (c) 2003 by Total Control Software
10 // Licence: wxWindows license
11 /////////////////////////////////////////////////////////////////////////////
16 //---------------------------------------------------------------------------
18 MAKE_CONST_WXSTRING(GaugeNameStr);
27 %pythoncode { GA_PROGRESSBAR = 0 %# obsolete }
29 //---------------------------------------------------------------------------
34 class wxGauge : public wxControl {
36 %pythonAppend wxGauge "self._setOORInfo(self)"
37 %pythonAppend wxGauge() ""
39 wxGauge(wxWindow* parent, wxWindowID id=-1, int range=100,
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 %RenameCtor(PreGauge, wxGauge());
47 bool Create(wxWindow* parent, wxWindowID id=-1, int range=100,
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);
54 // set/get the control range
55 virtual void SetRange(int range);
56 virtual int GetRange() const;
59 virtual void SetValue(int pos);
60 virtual int GetValue() const;
63 bool IsVertical() const;
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;
72 static wxVisualAttributes
73 GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
75 %property(BezelFace, GetBezelFace, SetBezelFace, doc="See `GetBezelFace` and `SetBezelFace`");
76 %property(Range, GetRange, SetRange, doc="See `GetRange` and `SetRange`");
77 %property(ShadowWidth, GetShadowWidth, SetShadowWidth, doc="See `GetShadowWidth` and `SetShadowWidth`");
78 %property(Value, GetValue, SetValue, doc="See `GetValue` and `SetValue`");
82 //---------------------------------------------------------------------------