1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: SWIG interface defs for wxStaticBox, wxStaticLine,
4 // wxStaticText, wxStaticBitmap
8 // Created: 10-June-1998
10 // Copyright: (c) 2003 by Total Control Software
11 // Licence: wxWindows license
12 /////////////////////////////////////////////////////////////////////////////
17 //---------------------------------------------------------------------------
20 DECLARE_DEF_STRING(StaticBitmapNameStr);
21 DECLARE_DEF_STRING(StaticBoxNameStr);
22 DECLARE_DEF_STRING(StaticTextNameStr);
25 //---------------------------------------------------------------------------
28 class wxStaticBox : public wxControl {
30 %addtofunc wxStaticBox "self._setOORInfo(self)"
31 %addtofunc wxStaticBox() ""
33 wxStaticBox(wxWindow* parent, wxWindowID id, const wxString& label,
34 const wxPoint& pos = wxDefaultPosition,
35 const wxSize& size = wxDefaultSize,
37 const wxString& name = wxPyStaticBoxNameStr);
38 %name(PreStaticBox)wxStaticBox();
40 bool Create(wxWindow* parent, wxWindowID id, const wxString& label,
41 const wxPoint& pos = wxDefaultPosition,
42 const wxSize& size = wxDefaultSize,
44 const wxString& name = wxPyStaticBoxNameStr);
48 //---------------------------------------------------------------------------
52 class wxStaticLine : public wxControl {
54 %addtofunc wxStaticLine "self._setOORInfo(self)"
55 %addtofunc wxStaticLine() ""
57 wxStaticLine( wxWindow *parent, wxWindowID id,
58 const wxPoint &pos = wxDefaultPosition,
59 const wxSize &size = wxDefaultSize,
60 long style = wxLI_HORIZONTAL,
61 const wxString& name = wxPyStaticTextNameStr);
62 %name(PreStaticLine)wxStaticLine();
64 bool Create( wxWindow *parent, wxWindowID id,
65 const wxPoint &pos = wxDefaultPosition,
66 const wxSize &size = wxDefaultSize,
67 long style = wxLI_HORIZONTAL,
68 const wxString& name = wxPyStaticTextNameStr);
70 // is the line vertical?
71 bool IsVertical() const;
73 // get the default size for the "lesser" dimension of the static line
74 static int GetDefaultSize() { return 2; }
79 //---------------------------------------------------------------------------
82 class wxStaticText : public wxControl {
84 %addtofunc wxStaticText "self._setOORInfo(self)"
85 %addtofunc wxStaticText() ""
87 wxStaticText(wxWindow* parent, wxWindowID id, const wxString& label,
88 const wxPoint& pos = wxDefaultPosition,
89 const wxSize& size = wxDefaultSize,
91 const wxString& name = wxPyStaticTextNameStr);
92 %name(PreStaticText)wxStaticText();
94 bool Create(wxWindow* parent, wxWindowID id, const wxString& label,
95 const wxPoint& pos = wxDefaultPosition,
96 const wxSize& size = wxDefaultSize,
98 const wxString& name = wxPyStaticTextNameStr);
101 //---------------------------------------------------------------------------
104 class wxStaticBitmap : public wxControl {
106 %addtofunc wxStaticText "self._setOORInfo(self)"
107 %addtofunc wxStaticText() ""
109 wxStaticBitmap(wxWindow* parent, wxWindowID id,
110 const wxBitmap& bitmap,
111 const wxPoint& pos = wxDefaultPosition,
112 const wxSize& size = wxDefaultSize,
114 const wxString& name = wxPyStaticBitmapNameStr);
115 %name(PreStaticBitmap)wxStaticBitmap();
117 bool Create(wxWindow* parent, wxWindowID id,
118 const wxBitmap& bitmap,
119 const wxPoint& pos = wxDefaultPosition,
120 const wxSize& size = wxDefaultSize,
122 const wxString& name = wxPyStaticBitmapNameStr);
124 wxBitmap GetBitmap();
125 void SetBitmap(const wxBitmap& bitmap);
126 void SetIcon(const wxIcon& icon);
129 //---------------------------------------------------------------------------
130 //---------------------------------------------------------------------------