]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/_gauge.i
better report if the subclass factory has import problems
[wxWidgets.git] / wxPython / src / _gauge.i
CommitLineData
d14a1e28
RD
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
b2dc1044 18MAKE_CONST_WXSTRING(GaugeNameStr);
d14a1e28
RD
19
20%newgroup
21
22enum {
23 wxGA_HORIZONTAL,
24 wxGA_VERTICAL,
25 wxGA_SMOOTH,
d14a1e28 26};
15648073 27%pythoncode { GA_PROGRESSBAR = 0 %# obsolete }
d14a1e28
RD
28
29//---------------------------------------------------------------------------
30
31
ab1f7d2a
RD
32MustHaveApp(wxGauge);
33
d14a1e28
RD
34class wxGauge : public wxControl {
35public:
2b9048c5
RD
36 %pythonAppend wxGauge "self._setOORInfo(self)"
37 %pythonAppend wxGauge() ""
d14a1e28 38
d5573410 39 wxGauge(wxWindow* parent, wxWindowID id=-1, int range=100,
d14a1e28
RD
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);
1b8c7ba6 45 %RenameCtor(PreGauge, wxGauge());
d14a1e28 46
d5573410 47 bool Create(wxWindow* parent, wxWindowID id=-1, int range=100,
d14a1e28
RD
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
e81851eb
RD
62 // indeterminate mode API
63 virtual void Pulse();
64
d14a1e28
RD
65 // simple accessors
66 bool IsVertical() const;
67
68 // appearance params (not implemented for most ports)
69 virtual void SetShadowWidth(int w);
70 virtual int GetShadowWidth() const;
71 virtual void SetBezelFace(int w);
72 virtual int GetBezelFace() const;
880715c9
RD
73
74
75 static wxVisualAttributes
76 GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
76b8fa1d
RD
77
78 %property(BezelFace, GetBezelFace, SetBezelFace, doc="See `GetBezelFace` and `SetBezelFace`");
79 %property(Range, GetRange, SetRange, doc="See `GetRange` and `SetRange`");
80 %property(ShadowWidth, GetShadowWidth, SetShadowWidth, doc="See `GetShadowWidth` and `SetShadowWidth`");
81 %property(Value, GetValue, SetValue, doc="See `GetValue` and `SetValue`");
82
d14a1e28
RD
83};
84
85//---------------------------------------------------------------------------