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:
Robin Dunn
2003-11-12 21:34:20 +00:00
parent eb6a4098a0
commit d14a1e2856
987 changed files with 671143 additions and 783083 deletions

130
wxPython/src/_statctrls.i Normal file
View File

@@ -0,0 +1,130 @@
/////////////////////////////////////////////////////////////////////////////
// Name: _statctrls.i
// Purpose: SWIG interface defs for wxStaticBox, wxStaticLine,
// wxStaticText, wxStaticBitmap
//
// Author: Robin Dunn
//
// Created: 10-June-1998
// RCS-ID: $Id$
// Copyright: (c) 2003 by Total Control Software
// Licence: wxWindows license
/////////////////////////////////////////////////////////////////////////////
// Not a %module
//---------------------------------------------------------------------------
%{
DECLARE_DEF_STRING(StaticBitmapNameStr);
DECLARE_DEF_STRING(StaticBoxNameStr);
DECLARE_DEF_STRING(StaticTextNameStr);
%}
//---------------------------------------------------------------------------
%newgroup
class wxStaticBox : public wxControl {
public:
%addtofunc wxStaticBox "self._setOORInfo(self)"
%addtofunc wxStaticBox() ""
wxStaticBox(wxWindow* parent, wxWindowID id, const wxString& label,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = 0,
const wxString& name = wxPyStaticBoxNameStr);
%name(PreStaticBox)wxStaticBox();
bool Create(wxWindow* parent, wxWindowID id, const wxString& label,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = 0,
const wxString& name = wxPyStaticBoxNameStr);
};
//---------------------------------------------------------------------------
%newgroup
class wxStaticLine : public wxControl {
public:
%addtofunc wxStaticLine "self._setOORInfo(self)"
%addtofunc wxStaticLine() ""
wxStaticLine( wxWindow *parent, wxWindowID id,
const wxPoint &pos = wxDefaultPosition,
const wxSize &size = wxDefaultSize,
long style = wxLI_HORIZONTAL,
const wxString& name = wxPyStaticTextNameStr);
%name(PreStaticLine)wxStaticLine();
bool Create( wxWindow *parent, wxWindowID id,
const wxPoint &pos = wxDefaultPosition,
const wxSize &size = wxDefaultSize,
long style = wxLI_HORIZONTAL,
const wxString& name = wxPyStaticTextNameStr);
// is the line vertical?
bool IsVertical() const;
// get the default size for the "lesser" dimension of the static line
static int GetDefaultSize() { return 2; }
};
//---------------------------------------------------------------------------
%newgroup
class wxStaticText : public wxControl {
public:
%addtofunc wxStaticText "self._setOORInfo(self)"
%addtofunc wxStaticText() ""
wxStaticText(wxWindow* parent, wxWindowID id, const wxString& label,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = 0,
const wxString& name = wxPyStaticTextNameStr);
%name(PreStaticText)wxStaticText();
bool Create(wxWindow* parent, wxWindowID id, const wxString& label,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = 0,
const wxString& name = wxPyStaticTextNameStr);
};
//---------------------------------------------------------------------------
%newgroup
class wxStaticBitmap : public wxControl {
public:
%addtofunc wxStaticText "self._setOORInfo(self)"
%addtofunc wxStaticText() ""
wxStaticBitmap(wxWindow* parent, wxWindowID id,
const wxBitmap& bitmap,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = 0,
const wxString& name = wxPyStaticBitmapNameStr);
%name(PreStaticBitmap)wxStaticBitmap();
bool Create(wxWindow* parent, wxWindowID id,
const wxBitmap& bitmap,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = 0,
const wxString& name = wxPyStaticBitmapNameStr);
wxBitmap GetBitmap();
void SetBitmap(const wxBitmap& bitmap);
void SetIcon(const wxIcon& icon);
};
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------