]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/_obj.i
Use a compatible bitmap if a depth of -1 is given
[wxWidgets.git] / wxPython / src / _obj.i
CommitLineData
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
19DocStr(wxObject,
20"The base class for most wx objects, although in wxPython not
21much functionality is needed nor exposed.");
22
d14a1e28
RD
23class wxObject {
24public:
25
26 %extend {
dd9f7fea
RD
27 DocStr(GetClassName,
28 "Returns the class name of the C++ object using wxRTTI.");
d14a1e28
RD
29 wxString GetClassName() {
30 return self->GetClassInfo()->GetClassName();
31 }
32
dd9f7fea
RD
33 DocStr(Destroy,
34 "Deletes the C++ object this Python object is a proxy for.");
d14a1e28
RD
35 void Destroy() {
36 delete self;
37 }
38 }
39};
40
41
42//---------------------------------------------------------------------------