]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/_statctrls.i
Clean out the old stuff
[wxWidgets.git] / wxPython / src / _statctrls.i
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: _statctrls.i
3 // Purpose: SWIG interface defs for wxStaticBox, wxStaticLine,
4 // wxStaticText, wxStaticBitmap
5 //
6 // Author: Robin Dunn
7 //
8 // Created: 10-June-1998
9 // RCS-ID: $Id$
10 // Copyright: (c) 2003 by Total Control Software
11 // Licence: wxWindows license
12 /////////////////////////////////////////////////////////////////////////////
13
14 // Not a %module
15
16
17 //---------------------------------------------------------------------------
18
19 MAKE_CONST_WXSTRING(StaticBitmapNameStr);
20 MAKE_CONST_WXSTRING(StaticBoxNameStr);
21 MAKE_CONST_WXSTRING(StaticTextNameStr);
22
23 //---------------------------------------------------------------------------
24 %newgroup
25
26 class wxStaticBox : public wxControl {
27 public:
28 %addtofunc wxStaticBox "self._setOORInfo(self)"
29 %addtofunc wxStaticBox() ""
30
31 wxStaticBox(wxWindow* parent, wxWindowID id, const wxString& label,
32 const wxPoint& pos = wxDefaultPosition,
33 const wxSize& size = wxDefaultSize,
34 long style = 0,
35 const wxString& name = wxPyStaticBoxNameStr);
36 %name(PreStaticBox)wxStaticBox();
37
38 bool Create(wxWindow* parent, wxWindowID id, const wxString& label,
39 const wxPoint& pos = wxDefaultPosition,
40 const wxSize& size = wxDefaultSize,
41 long style = 0,
42 const wxString& name = wxPyStaticBoxNameStr);
43 };
44
45
46 //---------------------------------------------------------------------------
47 %newgroup
48
49
50 class wxStaticLine : public wxControl {
51 public:
52 %addtofunc wxStaticLine "self._setOORInfo(self)"
53 %addtofunc wxStaticLine() ""
54
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();
61
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);
67
68 // is the line vertical?
69 bool IsVertical() const;
70
71 // get the default size for the "lesser" dimension of the static line
72 static int GetDefaultSize() { return 2; }
73
74 };
75
76
77 //---------------------------------------------------------------------------
78 %newgroup
79
80 class wxStaticText : public wxControl {
81 public:
82 %addtofunc wxStaticText "self._setOORInfo(self)"
83 %addtofunc wxStaticText() ""
84
85 wxStaticText(wxWindow* parent, wxWindowID id, const wxString& label,
86 const wxPoint& pos = wxDefaultPosition,
87 const wxSize& size = wxDefaultSize,
88 long style = 0,
89 const wxString& name = wxPyStaticTextNameStr);
90 %name(PreStaticText)wxStaticText();
91
92 bool Create(wxWindow* parent, wxWindowID id, const wxString& label,
93 const wxPoint& pos = wxDefaultPosition,
94 const wxSize& size = wxDefaultSize,
95 long style = 0,
96 const wxString& name = wxPyStaticTextNameStr);
97 };
98
99 //---------------------------------------------------------------------------
100 %newgroup
101
102 class wxStaticBitmap : public wxControl {
103 public:
104 %addtofunc wxStaticText "self._setOORInfo(self)"
105 %addtofunc wxStaticText() ""
106
107 wxStaticBitmap(wxWindow* parent, wxWindowID id,
108 const wxBitmap& bitmap,
109 const wxPoint& pos = wxDefaultPosition,
110 const wxSize& size = wxDefaultSize,
111 long style = 0,
112 const wxString& name = wxPyStaticBitmapNameStr);
113 %name(PreStaticBitmap)wxStaticBitmap();
114
115 bool Create(wxWindow* parent, wxWindowID id,
116 const wxBitmap& bitmap,
117 const wxPoint& pos = wxDefaultPosition,
118 const wxSize& size = wxDefaultSize,
119 long style = 0,
120 const wxString& name = wxPyStaticBitmapNameStr);
121
122 wxBitmap GetBitmap();
123 void SetBitmap(const wxBitmap& bitmap);
124 void SetIcon(const wxIcon& icon);
125 };
126
127 //---------------------------------------------------------------------------
128 //---------------------------------------------------------------------------