Merged the wxPy_newswig branch into the HEAD branch (main trunk)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24541 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
73
wxPython/src/_statusbar.i
Normal file
73
wxPython/src/_statusbar.i
Normal file
@@ -0,0 +1,73 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: _statusbar.i
|
||||
// Purpose: SWIG interface defs for wxStatusBar
|
||||
//
|
||||
// Author: Robin Dunn
|
||||
//
|
||||
// Created: 24-Aug-1998
|
||||
// RCS-ID: $Id$
|
||||
// Copyright: (c) 2003 by Total Control Software
|
||||
// Licence: wxWindows license
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// Not a %module
|
||||
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
%{
|
||||
%}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
%newgroup;
|
||||
|
||||
|
||||
// wxStatusBar: a window near the bottom of the frame used for status info
|
||||
class wxStatusBar : public wxWindow
|
||||
{
|
||||
public:
|
||||
%addtofunc wxStatusBar "self._setOORInfo(self)"
|
||||
%addtofunc wxStatusBar() ""
|
||||
|
||||
wxStatusBar(wxWindow* parent, wxWindowID id = -1,
|
||||
long style = wxST_SIZEGRIP,
|
||||
const wxString& name = wxPyStatusLineNameStr);
|
||||
%name(PreStatusBar)wxStatusBar();
|
||||
|
||||
bool Create(wxWindow* parent, wxWindowID id,
|
||||
long style = wxST_SIZEGRIP,
|
||||
const wxString& name = wxPyStatusLineNameStr);
|
||||
|
||||
// set the number of fields and call SetStatusWidths(widths) if widths are
|
||||
// given
|
||||
virtual void SetFieldsCount(int number = 1 /*, const int *widths = NULL*/);
|
||||
int GetFieldsCount() const;
|
||||
|
||||
virtual void SetStatusText(const wxString& text, int number = 0);
|
||||
virtual wxString GetStatusText(int number = 0) const;
|
||||
|
||||
void PushStatusText(const wxString& text, int number = 0);
|
||||
void PopStatusText(int number = 0);
|
||||
|
||||
|
||||
// set status field widths as absolute numbers: positive widths mean that
|
||||
// the field has the specified absolute width, negative widths are
|
||||
// interpreted as the sizer options, i.e. the extra space (total space
|
||||
// minus the sum of fixed width fields) is divided between the fields with
|
||||
// negative width according to the abs value of the width (field with width
|
||||
// -2 grows twice as much as one with width -1 &c)
|
||||
virtual void SetStatusWidths(int widths, const int* widths_field); // uses typemap in _toplvl.i
|
||||
|
||||
// Get the position and size of the field's internal bounding rectangle
|
||||
virtual bool GetFieldRect(int i, wxRect& rect) const;
|
||||
|
||||
// sets the minimal vertical size of the status bar
|
||||
virtual void SetMinHeight(int height);
|
||||
|
||||
// get the dimensions of the horizontal and vertical borders
|
||||
virtual int GetBorderX() const;
|
||||
virtual int GetBorderY() const;
|
||||
};
|
||||
|
||||
|
||||
//---------------------------------------------------------------------------
|
Reference in New Issue
Block a user