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 class wxStaticBox : public wxControl {
28 %pythonAppend wxStaticBox "self._setOORInfo(self)"
29 %pythonAppend wxStaticBox() ""
31 wxStaticBox(wxWindow* parent, wxWindowID id, const wxString& label,
32 const wxPoint& pos = wxDefaultPosition,
33 const wxSize& size = wxDefaultSize,
35 const wxString& name = wxPyStaticBoxNameStr);
36 %name(PreStaticBox)wxStaticBox();
38 bool Create(wxWindow* parent, wxWindowID id, const wxString& label,
39 const wxPoint& pos = wxDefaultPosition,
40 const wxSize& size = wxDefaultSize,
42 const wxString& name = wxPyStaticBoxNameStr);
46 //---------------------------------------------------------------------------
50 class wxStaticLine : public wxControl {
52 %pythonAppend wxStaticLine "self._setOORInfo(self)"
53 %pythonAppend wxStaticLine() ""
55 wxStaticLine( wxWindow *parent, wxWindowID id,
56 const wxPoint &pos = wxDefaultPosition,
57 const wxSize &size = wxDefaultSize,
58 long style = wxLI_HORIZONTAL,
59 const wxString& name = wxPyStaticTextNameStr);
60 %name(PreStaticLine)wxStaticLine();
62 bool Create( wxWindow *parent, wxWindowID id,
63 const wxPoint &pos = wxDefaultPosition,
64 const wxSize &size = wxDefaultSize,
65 long style = wxLI_HORIZONTAL,
66 const wxString& name = wxPyStaticTextNameStr);
68 // is the line vertical?
69 bool IsVertical() const;
71 // get the default size for the "lesser" dimension of the static line
72 static int GetDefaultSize() { return 2; }
77 //---------------------------------------------------------------------------
80 class wxStaticText : public wxControl {
82 %pythonAppend wxStaticText "self._setOORInfo(self)"
83 %pythonAppend wxStaticText() ""
85 wxStaticText(wxWindow* parent, wxWindowID id, const wxString& label,
86 const wxPoint& pos = wxDefaultPosition,
87 const wxSize& size = wxDefaultSize,
89 const wxString& name = wxPyStaticTextNameStr);
90 %name(PreStaticText)wxStaticText();
92 bool Create(wxWindow* parent, wxWindowID id, const wxString& label,
93 const wxPoint& pos = wxDefaultPosition,
94 const wxSize& size = wxDefaultSize,
96 const wxString& name = wxPyStaticTextNameStr);
99 //---------------------------------------------------------------------------
102 class wxStaticBitmap : public wxControl {
104 %pythonAppend wxStaticBitmap "self._setOORInfo(self)"
105 %pythonAppend wxStaticBitmap() ""
107 wxStaticBitmap(wxWindow* parent, wxWindowID id,
108 const wxBitmap& bitmap,
109 const wxPoint& pos = wxDefaultPosition,
110 const wxSize& size = wxDefaultSize,
112 const wxString& name = wxPyStaticBitmapNameStr);
113 %name(PreStaticBitmap)wxStaticBitmap();
115 bool Create(wxWindow* parent, wxWindowID id,
116 const wxBitmap& bitmap,
117 const wxPoint& pos = wxDefaultPosition,
118 const wxSize& size = wxDefaultSize,
120 const wxString& name = wxPyStaticBitmapNameStr);
122 wxBitmap GetBitmap();
123 void SetBitmap(const wxBitmap& bitmap);
124 void SetIcon(const wxIcon& icon);
127 //---------------------------------------------------------------------------
128 //---------------------------------------------------------------------------