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 //---------------------------------------------------------------------------
19 MAKE_CONST_WXSTRING(StaticBitmapNameStr);
20 MAKE_CONST_WXSTRING(StaticBoxNameStr);
21 MAKE_CONST_WXSTRING(StaticTextNameStr);
23 //---------------------------------------------------------------------------
26 MustHaveApp(wxStaticBox);
28 class wxStaticBox : public wxControl {
30 %pythonAppend wxStaticBox "self._setOORInfo(self)"
31 %pythonAppend 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);
46 static wxVisualAttributes
47 GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
51 //---------------------------------------------------------------------------
55 MustHaveApp(wxStaticLine);
57 class wxStaticLine : public wxControl {
59 %pythonAppend wxStaticLine "self._setOORInfo(self)"
60 %pythonAppend wxStaticLine() ""
62 wxStaticLine( wxWindow *parent, wxWindowID id,
63 const wxPoint &pos = wxDefaultPosition,
64 const wxSize &size = wxDefaultSize,
65 long style = wxLI_HORIZONTAL,
66 const wxString& name = wxPyStaticTextNameStr);
67 %name(PreStaticLine)wxStaticLine();
69 bool Create( wxWindow *parent, wxWindowID id,
70 const wxPoint &pos = wxDefaultPosition,
71 const wxSize &size = wxDefaultSize,
72 long style = wxLI_HORIZONTAL,
73 const wxString& name = wxPyStaticTextNameStr);
75 // is the line vertical?
76 bool IsVertical() const;
78 // get the default size for the "lesser" dimension of the static line
79 static int GetDefaultSize();
81 static wxVisualAttributes
82 GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
86 //---------------------------------------------------------------------------
89 MustHaveApp(wxStaticText);
91 class wxStaticText : public wxControl {
93 %pythonAppend wxStaticText "self._setOORInfo(self)"
94 %pythonAppend wxStaticText() ""
96 wxStaticText(wxWindow* parent, wxWindowID id, const wxString& label,
97 const wxPoint& pos = wxDefaultPosition,
98 const wxSize& size = wxDefaultSize,
100 const wxString& name = wxPyStaticTextNameStr);
101 %name(PreStaticText)wxStaticText();
103 bool Create(wxWindow* parent, wxWindowID id, const wxString& label,
104 const wxPoint& pos = wxDefaultPosition,
105 const wxSize& size = wxDefaultSize,
107 const wxString& name = wxPyStaticTextNameStr);
109 static wxVisualAttributes
110 GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
113 //---------------------------------------------------------------------------
116 MustHaveApp(wxStaticBitmap);
118 class wxStaticBitmap : public wxControl {
120 %pythonAppend wxStaticBitmap "self._setOORInfo(self)"
121 %pythonAppend wxStaticBitmap() ""
123 wxStaticBitmap(wxWindow* parent, wxWindowID id,
124 const wxBitmap& bitmap,
125 const wxPoint& pos = wxDefaultPosition,
126 const wxSize& size = wxDefaultSize,
128 const wxString& name = wxPyStaticBitmapNameStr);
129 %name(PreStaticBitmap)wxStaticBitmap();
131 bool Create(wxWindow* parent, wxWindowID id,
132 const wxBitmap& bitmap,
133 const wxPoint& pos = wxDefaultPosition,
134 const wxSize& size = wxDefaultSize,
136 const wxString& name = wxPyStaticBitmapNameStr);
138 wxBitmap GetBitmap();
139 void SetBitmap(const wxBitmap& bitmap);
140 void SetIcon(const wxIcon& icon);
142 static wxVisualAttributes
143 GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
146 //---------------------------------------------------------------------------
147 //---------------------------------------------------------------------------