1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: SWIG interface defs for wxStatusBar
7 // Created: 24-Aug-1998
9 // Copyright: (c) 2003 by Total Control Software
10 // Licence: wxWindows license
11 /////////////////////////////////////////////////////////////////////////////
16 //---------------------------------------------------------------------------
21 //---------------------------------------------------------------------------
26 // wxStatusBar: a window near the bottom of the frame used for status info
27 MustHaveApp(wxStatusBar);
28 class wxStatusBar : public wxWindow
31 %pythonAppend wxStatusBar "self._setOORInfo(self)"
32 %pythonAppend wxStatusBar() ""
34 wxStatusBar(wxWindow* parent, wxWindowID id = -1,
35 long style = wxDEFAULT_STATUSBAR_STYLE,
36 const wxString& name = wxPyStatusLineNameStr);
37 %name(PreStatusBar)wxStatusBar();
39 bool Create(wxWindow* parent, wxWindowID id=-1,
40 long style = wxST_SIZEGRIP,
41 const wxString& name = wxPyStatusLineNameStr);
43 // set the number of fields and call SetStatusWidths(widths) if widths are
45 virtual void SetFieldsCount(int number = 1 /*, const int *widths = NULL*/);
46 int GetFieldsCount() const;
48 virtual void SetStatusText(const wxString& text, int number = 0);
49 virtual wxString GetStatusText(int number = 0) const;
51 void PushStatusText(const wxString& text, int number = 0);
52 void PopStatusText(int number = 0);
55 // set status field widths as absolute numbers: positive widths mean that
56 // the field has the specified absolute width, negative widths are
57 // interpreted as the sizer options, i.e. the extra space (total space
58 // minus the sum of fixed width fields) is divided between the fields with
59 // negative width according to the abs value of the width (field with width
60 // -2 grows twice as much as one with width -1 &c)
61 virtual void SetStatusWidths(int widths, const int* widths_field); // uses typemap in _toplvl.i
63 // Get the position and size of the field's internal bounding rectangle
65 wxRect GetFieldRect(int i) {
67 self->GetFieldRect(i, r);
72 // sets the minimal vertical size of the status bar
73 virtual void SetMinHeight(int height);
75 // get the dimensions of the horizontal and vertical borders
76 virtual int GetBorderX() const;
77 virtual int GetBorderY() const;
79 static wxVisualAttributes
80 GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
84 //---------------------------------------------------------------------------