]>
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 | ||
26 | class wxStaticBox : public wxControl { | |
27 | public: | |
2b9048c5 RD |
28 | %pythonAppend wxStaticBox "self._setOORInfo(self)" |
29 | %pythonAppend wxStaticBox() "" | |
d14a1e28 RD |
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); | |
880715c9 RD |
43 | |
44 | static wxVisualAttributes | |
45 | GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); | |
d14a1e28 RD |
46 | }; |
47 | ||
48 | ||
49 | //--------------------------------------------------------------------------- | |
50 | %newgroup | |
51 | ||
52 | ||
53 | class wxStaticLine : public wxControl { | |
54 | public: | |
2b9048c5 RD |
55 | %pythonAppend wxStaticLine "self._setOORInfo(self)" |
56 | %pythonAppend wxStaticLine() "" | |
d14a1e28 RD |
57 | |
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(); | |
64 | ||
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); | |
70 | ||
71 | // is the line vertical? | |
72 | bool IsVertical() const; | |
73 | ||
74 | // get the default size for the "lesser" dimension of the static line | |
fa42d122 | 75 | static int GetDefaultSize(); |
d14a1e28 | 76 | |
880715c9 RD |
77 | static wxVisualAttributes |
78 | GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); | |
d14a1e28 RD |
79 | }; |
80 | ||
81 | ||
82 | //--------------------------------------------------------------------------- | |
83 | %newgroup | |
84 | ||
85 | class wxStaticText : public wxControl { | |
86 | public: | |
2b9048c5 RD |
87 | %pythonAppend wxStaticText "self._setOORInfo(self)" |
88 | %pythonAppend wxStaticText() "" | |
d14a1e28 RD |
89 | |
90 | wxStaticText(wxWindow* parent, wxWindowID id, const wxString& label, | |
91 | const wxPoint& pos = wxDefaultPosition, | |
92 | const wxSize& size = wxDefaultSize, | |
93 | long style = 0, | |
94 | const wxString& name = wxPyStaticTextNameStr); | |
95 | %name(PreStaticText)wxStaticText(); | |
96 | ||
97 | bool Create(wxWindow* parent, wxWindowID id, const wxString& label, | |
98 | const wxPoint& pos = wxDefaultPosition, | |
99 | const wxSize& size = wxDefaultSize, | |
100 | long style = 0, | |
101 | const wxString& name = wxPyStaticTextNameStr); | |
880715c9 RD |
102 | |
103 | static wxVisualAttributes | |
104 | GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); | |
d14a1e28 RD |
105 | }; |
106 | ||
107 | //--------------------------------------------------------------------------- | |
108 | %newgroup | |
109 | ||
110 | class wxStaticBitmap : public wxControl { | |
111 | public: | |
8179a168 RD |
112 | %pythonAppend wxStaticBitmap "self._setOORInfo(self)" |
113 | %pythonAppend wxStaticBitmap() "" | |
d14a1e28 RD |
114 | |
115 | wxStaticBitmap(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 | %name(PreStaticBitmap)wxStaticBitmap(); | |
122 | ||
123 | bool Create(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 | ||
130 | wxBitmap GetBitmap(); | |
131 | void SetBitmap(const wxBitmap& bitmap); | |
132 | void SetIcon(const wxIcon& icon); | |
880715c9 RD |
133 | |
134 | static wxVisualAttributes | |
135 | GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); | |
d14a1e28 RD |
136 | }; |
137 | ||
138 | //--------------------------------------------------------------------------- | |
139 | //--------------------------------------------------------------------------- |