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=-1,
34 const wxString& label = wxPyEmptyString,
35 const wxPoint& pos = wxDefaultPosition,
36 const wxSize& size = wxDefaultSize,
38 const wxString& name = wxPyStaticBoxNameStr);
39 %name(PreStaticBox)wxStaticBox();
41 bool Create(wxWindow* parent, wxWindowID id=-1,
42 const wxString& label = wxPyEmptyString,
43 const wxPoint& pos = wxDefaultPosition,
44 const wxSize& size = wxDefaultSize,
46 const wxString& name = wxPyStaticBoxNameStr);
48 static wxVisualAttributes
49 GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
53 //---------------------------------------------------------------------------
57 MustHaveApp(wxStaticLine);
59 class wxStaticLine : public wxControl {
61 %pythonAppend wxStaticLine "self._setOORInfo(self)"
62 %pythonAppend wxStaticLine() ""
64 wxStaticLine( wxWindow *parent, wxWindowID id=-1,
65 const wxPoint &pos = wxDefaultPosition,
66 const wxSize &size = wxDefaultSize,
67 long style = wxLI_HORIZONTAL,
68 const wxString& name = wxPyStaticTextNameStr);
69 %name(PreStaticLine)wxStaticLine();
71 bool Create( wxWindow *parent, wxWindowID id=-1,
72 const wxPoint &pos = wxDefaultPosition,
73 const wxSize &size = wxDefaultSize,
74 long style = wxLI_HORIZONTAL,
75 const wxString& name = wxPyStaticTextNameStr);
77 // is the line vertical?
78 bool IsVertical() const;
80 // get the default size for the "lesser" dimension of the static line
81 static int GetDefaultSize();
83 static wxVisualAttributes
84 GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
88 //---------------------------------------------------------------------------
91 MustHaveApp(wxStaticText);
93 class wxStaticText : public wxControl {
95 %pythonAppend wxStaticText "self._setOORInfo(self)"
96 %pythonAppend wxStaticText() ""
98 wxStaticText(wxWindow* parent, wxWindowID id=-1,
99 const wxString& label = wxPyEmptyString,
100 const wxPoint& pos = wxDefaultPosition,
101 const wxSize& size = wxDefaultSize,
103 const wxString& name = wxPyStaticTextNameStr);
104 %name(PreStaticText)wxStaticText();
106 bool Create(wxWindow* parent, wxWindowID id=-1,
107 const wxString& label = wxPyEmptyString,
108 const wxPoint& pos = wxDefaultPosition,
109 const wxSize& size = wxDefaultSize,
111 const wxString& name = wxPyStaticTextNameStr);
113 static wxVisualAttributes
114 GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
117 //---------------------------------------------------------------------------
120 MustHaveApp(wxStaticBitmap);
122 class wxStaticBitmap : public wxControl {
124 %pythonAppend wxStaticBitmap "self._setOORInfo(self)"
125 %pythonAppend wxStaticBitmap() ""
127 wxStaticBitmap(wxWindow* parent, wxWindowID id=-1,
128 const wxBitmap& bitmap = wxNullBitmap,
129 const wxPoint& pos = wxDefaultPosition,
130 const wxSize& size = wxDefaultSize,
132 const wxString& name = wxPyStaticBitmapNameStr);
133 %name(PreStaticBitmap)wxStaticBitmap();
135 bool Create(wxWindow* parent, wxWindowID id=-1,
136 const wxBitmap& bitmap = wxNullBitmap,
137 const wxPoint& pos = wxDefaultPosition,
138 const wxSize& size = wxDefaultSize,
140 const wxString& name = wxPyStaticBitmapNameStr);
142 wxBitmap GetBitmap();
143 void SetBitmap(const wxBitmap& bitmap);
144 void SetIcon(const wxIcon& icon);
146 static wxVisualAttributes
147 GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
150 //---------------------------------------------------------------------------
151 //---------------------------------------------------------------------------