]> git.saurik.com Git - wxWidgets.git/blame_incremental - wxPython/src/_obj.i
fixed deadlock when calling wxPostEvent() from worker thread
[wxWidgets.git] / wxPython / src / _obj.i
... / ...
CommitLineData
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
19DocStr(wxObject,
20"The base class for most wx objects, although in wxPython not
21much functionality is needed nor exposed.", "");
22
23class wxObject {
24public:
25
26 %extend {
27 DocStr(GetClassName,
28 "Returns the class name of the C++ class using wxRTTI.", "");
29 wxString GetClassName() {
30 return self->GetClassInfo()->GetClassName();
31 }
32
33 %pythonPrepend Destroy "args[0].this.own(False)"
34 DocStr(Destroy,
35 "Deletes the C++ object this Python object is a proxy for.", "");
36 void Destroy() {
37 delete self;
38 }
39 }
40
41 DocDeclStr(
42 bool , IsSameAs(const wxObject& p) const,
43 "For wx.Objects that use C++ reference counting internally, this method
44can be used to determine if two objects are referencing the same data
45object.", "");
46
47
48 %property(ClassName, GetClassName, doc="See `GetClassName`");
49};
50
51
52//---------------------------------------------------------------------------