]>
Commit | Line | Data |
---|---|---|
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 | %{ | |
20 | DECLARE_DEF_STRING(StaticBitmapNameStr); | |
21 | DECLARE_DEF_STRING(StaticBoxNameStr); | |
22 | DECLARE_DEF_STRING(StaticTextNameStr); | |
23 | %} | |
24 | ||
25 | //--------------------------------------------------------------------------- | |
26 | %newgroup | |
27 | ||
28 | class wxStaticBox : public wxControl { | |
29 | public: | |
30 | %addtofunc wxStaticBox "self._setOORInfo(self)" | |
31 | %addtofunc wxStaticBox() "" | |
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); | |
45 | }; | |
46 | ||
47 | ||
48 | //--------------------------------------------------------------------------- | |
49 | %newgroup | |
50 | ||
51 | ||
52 | class wxStaticLine : public wxControl { | |
53 | public: | |
54 | %addtofunc wxStaticLine "self._setOORInfo(self)" | |
55 | %addtofunc wxStaticLine() "" | |
56 | ||
57 | wxStaticLine( wxWindow *parent, wxWindowID id, | |
58 | const wxPoint &pos = wxDefaultPosition, | |
59 | const wxSize &size = wxDefaultSize, | |
60 | long style = wxLI_HORIZONTAL, | |
61 | const wxString& name = wxPyStaticTextNameStr); | |
62 | %name(PreStaticLine)wxStaticLine(); | |
63 | ||
64 | bool Create( wxWindow *parent, wxWindowID id, | |
65 | const wxPoint &pos = wxDefaultPosition, | |
66 | const wxSize &size = wxDefaultSize, | |
67 | long style = wxLI_HORIZONTAL, | |
68 | const wxString& name = wxPyStaticTextNameStr); | |
69 | ||
70 | // is the line vertical? | |
71 | bool IsVertical() const; | |
72 | ||
73 | // get the default size for the "lesser" dimension of the static line | |
74 | static int GetDefaultSize() { return 2; } | |
75 | ||
76 | }; | |
77 | ||
78 | ||
79 | //--------------------------------------------------------------------------- | |
80 | %newgroup | |
81 | ||
82 | class wxStaticText : public wxControl { | |
83 | public: | |
84 | %addtofunc wxStaticText "self._setOORInfo(self)" | |
85 | %addtofunc wxStaticText() "" | |
86 | ||
87 | wxStaticText(wxWindow* parent, wxWindowID id, const wxString& label, | |
88 | const wxPoint& pos = wxDefaultPosition, | |
89 | const wxSize& size = wxDefaultSize, | |
90 | long style = 0, | |
91 | const wxString& name = wxPyStaticTextNameStr); | |
92 | %name(PreStaticText)wxStaticText(); | |
93 | ||
94 | bool Create(wxWindow* parent, wxWindowID id, const wxString& label, | |
95 | const wxPoint& pos = wxDefaultPosition, | |
96 | const wxSize& size = wxDefaultSize, | |
97 | long style = 0, | |
98 | const wxString& name = wxPyStaticTextNameStr); | |
99 | }; | |
100 | ||
101 | //--------------------------------------------------------------------------- | |
102 | %newgroup | |
103 | ||
104 | class wxStaticBitmap : public wxControl { | |
105 | public: | |
106 | %addtofunc wxStaticText "self._setOORInfo(self)" | |
107 | %addtofunc wxStaticText() "" | |
108 | ||
109 | wxStaticBitmap(wxWindow* parent, wxWindowID id, | |
110 | const wxBitmap& bitmap, | |
111 | const wxPoint& pos = wxDefaultPosition, | |
112 | const wxSize& size = wxDefaultSize, | |
113 | long style = 0, | |
114 | const wxString& name = wxPyStaticBitmapNameStr); | |
115 | %name(PreStaticBitmap)wxStaticBitmap(); | |
116 | ||
117 | bool Create(wxWindow* parent, wxWindowID id, | |
118 | const wxBitmap& bitmap, | |
119 | const wxPoint& pos = wxDefaultPosition, | |
120 | const wxSize& size = wxDefaultSize, | |
121 | long style = 0, | |
122 | const wxString& name = wxPyStaticBitmapNameStr); | |
123 | ||
124 | wxBitmap GetBitmap(); | |
125 | void SetBitmap(const wxBitmap& bitmap); | |
126 | void SetIcon(const wxIcon& icon); | |
127 | }; | |
128 | ||
129 | //--------------------------------------------------------------------------- | |
130 | //--------------------------------------------------------------------------- |