]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: _wxobj.i | |
3 | // Purpose: SWIG interface for wxObject | |
4 | // | |
5 | // Author: Robin Dunn | |
6 | // | |
7 | // Created: 9-Aug-2003 | |
8 | // RCS-ID: $Id$ | |
9 | // Copyright: (c) 2003 by Total Control Software | |
10 | // Licence: wxWindows license | |
11 | ///////////////////////////////////////////////////////////////////////////// | |
12 | ||
13 | // Not a %module | |
14 | ||
15 | ||
16 | //--------------------------------------------------------------------------- | |
17 | %newgroup | |
18 | ||
dd9f7fea RD |
19 | DocStr(wxObject, |
20 | "The base class for most wx objects, although in wxPython not | |
d07d2bc9 | 21 | much functionality is needed nor exposed.", ""); |
dd9f7fea | 22 | |
d14a1e28 RD |
23 | class wxObject { |
24 | public: | |
25 | ||
26 | %extend { | |
dd9f7fea | 27 | DocStr(GetClassName, |
d07d2bc9 | 28 | "Returns the class name of the C++ class using wxRTTI.", ""); |
d14a1e28 RD |
29 | wxString GetClassName() { |
30 | return self->GetClassInfo()->GetClassName(); | |
31 | } | |
32 | ||
4b5a79cf | 33 | %pythonPrepend Destroy "args[0].this.own(False)" |
dd9f7fea | 34 | DocStr(Destroy, |
d07d2bc9 | 35 | "Deletes the C++ object this Python object is a proxy for.", ""); |
d14a1e28 RD |
36 | void Destroy() { |
37 | delete self; | |
38 | } | |
39 | } | |
7012bb9f RD |
40 | |
41 | %property(ClassName, GetClassName, doc="See `GetClassName`"); | |
d14a1e28 RD |
42 | }; |
43 | ||
44 | ||
45 | //--------------------------------------------------------------------------- |