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() ""
32 %typemap(out) wxStaticBox*; // turn off this typemap
34 wxStaticBox(wxWindow* parent, wxWindowID id=-1,
35 const wxString& label = wxPyEmptyString,
36 const wxPoint& pos = wxDefaultPosition,
37 const wxSize& size = wxDefaultSize,
39 const wxString& name = wxPyStaticBoxNameStr);
40 %RenameCtor(PreStaticBox, wxStaticBox());
42 // Turn it back on again
43 %typemap(out) wxStaticBox* { $result = wxPyMake_wxObject($1, $owner); }
45 bool Create(wxWindow* parent, wxWindowID id=-1,
46 const wxString& label = wxPyEmptyString,
47 const wxPoint& pos = wxDefaultPosition,
48 const wxSize& size = wxDefaultSize,
50 const wxString& name = wxPyStaticBoxNameStr);
52 static wxVisualAttributes
53 GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
57 //---------------------------------------------------------------------------
61 MustHaveApp(wxStaticLine);
63 class wxStaticLine : public wxControl {
65 %pythonAppend wxStaticLine "self._setOORInfo(self)"
66 %pythonAppend wxStaticLine() ""
68 wxStaticLine( wxWindow *parent, wxWindowID id=-1,
69 const wxPoint &pos = wxDefaultPosition,
70 const wxSize &size = wxDefaultSize,
71 long style = wxLI_HORIZONTAL,
72 const wxString& name = wxPyStaticTextNameStr);
73 %RenameCtor(PreStaticLine, wxStaticLine());
75 bool Create( wxWindow *parent, wxWindowID id=-1,
76 const wxPoint &pos = wxDefaultPosition,
77 const wxSize &size = wxDefaultSize,
78 long style = wxLI_HORIZONTAL,
79 const wxString& name = wxPyStaticTextNameStr);
81 // is the line vertical?
82 bool IsVertical() const;
84 // get the default size for the "lesser" dimension of the static line
85 static int GetDefaultSize();
87 static wxVisualAttributes
88 GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
92 //---------------------------------------------------------------------------
95 MustHaveApp(wxStaticText);
97 class wxStaticText : public wxControl {
99 %pythonAppend wxStaticText "self._setOORInfo(self)"
100 %pythonAppend wxStaticText() ""
102 wxStaticText(wxWindow* parent, wxWindowID id=-1,
103 const wxString& label = wxPyEmptyString,
104 const wxPoint& pos = wxDefaultPosition,
105 const wxSize& size = wxDefaultSize,
107 const wxString& name = wxPyStaticTextNameStr);
108 %RenameCtor(PreStaticText, wxStaticText());
110 bool Create(wxWindow* parent, wxWindowID id=-1,
111 const wxString& label = wxPyEmptyString,
112 const wxPoint& pos = wxDefaultPosition,
113 const wxSize& size = wxDefaultSize,
115 const wxString& name = wxPyStaticTextNameStr);
117 static wxVisualAttributes
118 GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
121 //---------------------------------------------------------------------------
124 MustHaveApp(wxStaticBitmap);
126 class wxStaticBitmap : public wxControl {
128 %pythonAppend wxStaticBitmap "self._setOORInfo(self)"
129 %pythonAppend wxStaticBitmap() ""
131 wxStaticBitmap(wxWindow* parent, wxWindowID id=-1,
132 const wxBitmap& bitmap = wxNullBitmap,
133 const wxPoint& pos = wxDefaultPosition,
134 const wxSize& size = wxDefaultSize,
136 const wxString& name = wxPyStaticBitmapNameStr);
137 %RenameCtor(PreStaticBitmap, wxStaticBitmap());
139 bool Create(wxWindow* parent, wxWindowID id=-1,
140 const wxBitmap& bitmap = wxNullBitmap,
141 const wxPoint& pos = wxDefaultPosition,
142 const wxSize& size = wxDefaultSize,
144 const wxString& name = wxPyStaticBitmapNameStr);
146 wxBitmap GetBitmap();
147 void SetBitmap(const wxBitmap& bitmap);
148 void SetIcon(const wxIcon& icon);
150 static wxVisualAttributes
151 GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
154 //---------------------------------------------------------------------------
155 //---------------------------------------------------------------------------