]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/_gauge.i
Use a local copy of the old wxBufferedDC classes until the ones in the
[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,
26 wxGA_PROGRESSBAR // obsolete
27};
28
29//---------------------------------------------------------------------------
30
31
32class wxGauge : public wxControl {
33public:
2b9048c5
RD
34 %pythonAppend wxGauge "self._setOORInfo(self)"
35 %pythonAppend wxGauge() ""
d14a1e28
RD
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//---------------------------------------------------------------------------