]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
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 | ||
b2dc1044 RD |
19 | MAKE_CONST_WXSTRING(StaticBitmapNameStr); |
20 | MAKE_CONST_WXSTRING(StaticBoxNameStr); | |
21 | MAKE_CONST_WXSTRING(StaticTextNameStr); | |
d14a1e28 RD |
22 | |
23 | //--------------------------------------------------------------------------- | |
24 | %newgroup | |
25 | ||
ab1f7d2a RD |
26 | MustHaveApp(wxStaticBox); |
27 | ||
d14a1e28 RD |
28 | class wxStaticBox : public wxControl { |
29 | public: | |
2b9048c5 RD |
30 | %pythonAppend wxStaticBox "self._setOORInfo(self)" |
31 | %pythonAppend wxStaticBox() "" | |
d14a1e28 RD |
32 | |
33 | wxStaticBox(wxWindow* parent, wxWindowID id, const wxString& label, | |
34 | const wxPoint& pos = wxDefaultPosition, | |
35 | const wxSize& size = wxDefaultSize, | |
36 | long style = 0, | |
37 | const wxString& name = wxPyStaticBoxNameStr); | |
38 | %name(PreStaticBox)wxStaticBox(); | |
39 | ||
40 | bool Create(wxWindow* parent, wxWindowID id, const wxString& label, | |
41 | const wxPoint& pos = wxDefaultPosition, | |
42 | const wxSize& size = wxDefaultSize, | |
43 | long style = 0, | |
44 | const wxString& name = wxPyStaticBoxNameStr); | |
880715c9 RD |
45 | |
46 | static wxVisualAttributes | |
47 | GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); | |
d14a1e28 RD |
48 | }; |
49 | ||
50 | ||
51 | //--------------------------------------------------------------------------- | |
52 | %newgroup | |
53 | ||
54 | ||
ab1f7d2a RD |
55 | MustHaveApp(wxStaticLine); |
56 | ||
d14a1e28 RD |
57 | class wxStaticLine : public wxControl { |
58 | public: | |
2b9048c5 RD |
59 | %pythonAppend wxStaticLine "self._setOORInfo(self)" |
60 | %pythonAppend wxStaticLine() "" | |
d14a1e28 RD |
61 | |
62 | wxStaticLine( 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 | %name(PreStaticLine)wxStaticLine(); | |
68 | ||
69 | bool Create( wxWindow *parent, wxWindowID id, | |
70 | const wxPoint &pos = wxDefaultPosition, | |
71 | const wxSize &size = wxDefaultSize, | |
72 | long style = wxLI_HORIZONTAL, | |
73 | const wxString& name = wxPyStaticTextNameStr); | |
74 | ||
75 | // is the line vertical? | |
76 | bool IsVertical() const; | |
77 | ||
78 | // get the default size for the "lesser" dimension of the static line | |
fa42d122 | 79 | static int GetDefaultSize(); |
d14a1e28 | 80 | |
880715c9 RD |
81 | static wxVisualAttributes |
82 | GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); | |
d14a1e28 RD |
83 | }; |
84 | ||
85 | ||
86 | //--------------------------------------------------------------------------- | |
87 | %newgroup | |
88 | ||
ab1f7d2a RD |
89 | MustHaveApp(wxStaticText); |
90 | ||
d14a1e28 RD |
91 | class wxStaticText : public wxControl { |
92 | public: | |
2b9048c5 RD |
93 | %pythonAppend wxStaticText "self._setOORInfo(self)" |
94 | %pythonAppend wxStaticText() "" | |
d14a1e28 RD |
95 | |
96 | wxStaticText(wxWindow* parent, wxWindowID id, const wxString& label, | |
97 | const wxPoint& pos = wxDefaultPosition, | |
98 | const wxSize& size = wxDefaultSize, | |
99 | long style = 0, | |
100 | const wxString& name = wxPyStaticTextNameStr); | |
101 | %name(PreStaticText)wxStaticText(); | |
102 | ||
103 | bool Create(wxWindow* parent, wxWindowID id, const wxString& label, | |
104 | const wxPoint& pos = wxDefaultPosition, | |
105 | const wxSize& size = wxDefaultSize, | |
106 | long style = 0, | |
107 | const wxString& name = wxPyStaticTextNameStr); | |
880715c9 RD |
108 | |
109 | static wxVisualAttributes | |
110 | GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); | |
d14a1e28 RD |
111 | }; |
112 | ||
113 | //--------------------------------------------------------------------------- | |
114 | %newgroup | |
115 | ||
ab1f7d2a RD |
116 | MustHaveApp(wxStaticBitmap); |
117 | ||
d14a1e28 RD |
118 | class wxStaticBitmap : public wxControl { |
119 | public: | |
8179a168 RD |
120 | %pythonAppend wxStaticBitmap "self._setOORInfo(self)" |
121 | %pythonAppend wxStaticBitmap() "" | |
d14a1e28 RD |
122 | |
123 | wxStaticBitmap(wxWindow* parent, wxWindowID id, | |
124 | const wxBitmap& bitmap, | |
125 | const wxPoint& pos = wxDefaultPosition, | |
126 | const wxSize& size = wxDefaultSize, | |
127 | long style = 0, | |
128 | const wxString& name = wxPyStaticBitmapNameStr); | |
129 | %name(PreStaticBitmap)wxStaticBitmap(); | |
130 | ||
131 | bool Create(wxWindow* parent, wxWindowID id, | |
132 | const wxBitmap& bitmap, | |
133 | const wxPoint& pos = wxDefaultPosition, | |
134 | const wxSize& size = wxDefaultSize, | |
135 | long style = 0, | |
136 | const wxString& name = wxPyStaticBitmapNameStr); | |
137 | ||
138 | wxBitmap GetBitmap(); | |
139 | void SetBitmap(const wxBitmap& bitmap); | |
140 | void SetIcon(const wxIcon& icon); | |
880715c9 RD |
141 | |
142 | static wxVisualAttributes | |
143 | GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); | |
d14a1e28 RD |
144 | }; |
145 | ||
146 | //--------------------------------------------------------------------------- | |
147 | //--------------------------------------------------------------------------- |