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);
44 static wxVisualAttributes
45 GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
49 //---------------------------------------------------------------------------
53 class wxStaticLine : public wxControl {
55 %pythonAppend wxStaticLine "self._setOORInfo(self)"
56 %pythonAppend wxStaticLine() ""
58 wxStaticLine( wxWindow *parent, wxWindowID id,
59 const wxPoint &pos = wxDefaultPosition,
60 const wxSize &size = wxDefaultSize,
61 long style = wxLI_HORIZONTAL,
62 const wxString& name = wxPyStaticTextNameStr);
63 %name(PreStaticLine)wxStaticLine();
65 bool Create( wxWindow *parent, wxWindowID id,
66 const wxPoint &pos = wxDefaultPosition,
67 const wxSize &size = wxDefaultSize,
68 long style = wxLI_HORIZONTAL,
69 const wxString& name = wxPyStaticTextNameStr);
71 // is the line vertical?
72 bool IsVertical() const;
74 // get the default size for the "lesser" dimension of the static line
75 static int GetDefaultSize();
77 static wxVisualAttributes
78 GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
82 //---------------------------------------------------------------------------
85 class wxStaticText : public wxControl {
87 %pythonAppend wxStaticText "self._setOORInfo(self)"
88 %pythonAppend wxStaticText() ""
90 wxStaticText(wxWindow* parent, wxWindowID id, const wxString& label,
91 const wxPoint& pos = wxDefaultPosition,
92 const wxSize& size = wxDefaultSize,
94 const wxString& name = wxPyStaticTextNameStr);
95 %name(PreStaticText)wxStaticText();
97 bool Create(wxWindow* parent, wxWindowID id, const wxString& label,
98 const wxPoint& pos = wxDefaultPosition,
99 const wxSize& size = wxDefaultSize,
101 const wxString& name = wxPyStaticTextNameStr);
103 static wxVisualAttributes
104 GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
107 //---------------------------------------------------------------------------
110 class wxStaticBitmap : public wxControl {
112 %pythonAppend wxStaticBitmap "self._setOORInfo(self)"
113 %pythonAppend wxStaticBitmap() ""
115 wxStaticBitmap(wxWindow* parent, wxWindowID id,
116 const wxBitmap& bitmap,
117 const wxPoint& pos = wxDefaultPosition,
118 const wxSize& size = wxDefaultSize,
120 const wxString& name = wxPyStaticBitmapNameStr);
121 %name(PreStaticBitmap)wxStaticBitmap();
123 bool Create(wxWindow* parent, wxWindowID id,
124 const wxBitmap& bitmap,
125 const wxPoint& pos = wxDefaultPosition,
126 const wxSize& size = wxDefaultSize,
128 const wxString& name = wxPyStaticBitmapNameStr);
130 wxBitmap GetBitmap();
131 void SetBitmap(const wxBitmap& bitmap);
132 void SetIcon(const wxIcon& icon);
134 static wxVisualAttributes
135 GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
138 //---------------------------------------------------------------------------
139 //---------------------------------------------------------------------------