]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/_statusbar.i
Fixes and updates for the activex module info.
[wxWidgets.git] / wxPython / src / _statusbar.i
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: _statusbar.i
3 // Purpose: SWIG interface defs for wxStatusBar
4 //
5 // Author: Robin Dunn
6 //
7 // Created: 24-Aug-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 %}
20
21 //---------------------------------------------------------------------------
22 %newgroup;
23
24
25
26 // wxStatusBar: a window near the bottom of the frame used for status info
27 class wxStatusBar : public wxWindow
28 {
29 public:
30 %pythonAppend wxStatusBar "self._setOORInfo(self)"
31 %pythonAppend wxStatusBar() ""
32
33 wxStatusBar(wxWindow* parent, wxWindowID id = -1,
34 long style = wxDEFAULT_STATUSBAR_STYLE,
35 const wxString& name = wxPyStatusLineNameStr);
36 %name(PreStatusBar)wxStatusBar();
37
38 bool Create(wxWindow* parent, wxWindowID id,
39 long style = wxST_SIZEGRIP,
40 const wxString& name = wxPyStatusLineNameStr);
41
42 // set the number of fields and call SetStatusWidths(widths) if widths are
43 // given
44 virtual void SetFieldsCount(int number = 1 /*, const int *widths = NULL*/);
45 int GetFieldsCount() const;
46
47 virtual void SetStatusText(const wxString& text, int number = 0);
48 virtual wxString GetStatusText(int number = 0) const;
49
50 void PushStatusText(const wxString& text, int number = 0);
51 void PopStatusText(int number = 0);
52
53
54 // set status field widths as absolute numbers: positive widths mean that
55 // the field has the specified absolute width, negative widths are
56 // interpreted as the sizer options, i.e. the extra space (total space
57 // minus the sum of fixed width fields) is divided between the fields with
58 // negative width according to the abs value of the width (field with width
59 // -2 grows twice as much as one with width -1 &c)
60 virtual void SetStatusWidths(int widths, const int* widths_field); // uses typemap in _toplvl.i
61
62 // Get the position and size of the field's internal bounding rectangle
63 %extend {
64 wxRect GetFieldRect(int i) {
65 wxRect r;
66 self->GetFieldRect(i, r);
67 return r;
68 }
69 }
70
71 // sets the minimal vertical size of the status bar
72 virtual void SetMinHeight(int height);
73
74 // get the dimensions of the horizontal and vertical borders
75 virtual int GetBorderX() const;
76 virtual int GetBorderY() const;
77 };
78
79
80 //---------------------------------------------------------------------------