Files
Phoenix/sip/gen/object.sip
Robin Dunn 05311d6b77 regen sip files
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@66469 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-12-27 19:04:08 +00:00

122 lines
2.3 KiB
Plaintext

//---------------------------------------------------------------------------
// This file is generated by wxPython's SIP generator. Do not edit by hand.
//
// Copyright: (c) 2010 by Total Control Software
// License: wxWindows License
//
// This file will be included by _core.sip
//
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
class wxRefCounter
{
%TypeHeaderCode
#include <wx/object.h>
%End
public:
wxRefCounter();
void DecRef();
int GetRefCount();
void IncRef();
private:
wxRefCounter(const wxRefCounter&);
protected:
virtual
~wxRefCounter();
}; // end of class wxRefCounter
class wxObject
{
%TypeHeaderCode
#include <wx/object.h>
%End
public:
wxObject();
wxObject(
const wxObject & other
);
virtual
~wxObject();
wxObjectRefData * GetRefData();
bool IsSameAs(
const wxObject & obj
);
void Ref(
const wxObject & clone
);
void SetRefData(
wxObjectRefData * data
);
void UnRef();
void UnShare();
%TypeCode
const wxChar* _wxObject_GetClassName(wxObject* self, int& _isErr)
{
return self->GetClassInfo()->GetClassName();
}
%End
const wxChar* GetClassName();
%MethodCode
sipRes = _wxObject_GetClassName(sipCpp, sipIsErr);
%End
%TypeCode
void _wxObject_Destroy(wxObject* self, int& _isErr)
{
delete self;
}
%End
void Destroy() /TranserThis/;
%MethodCode
_wxObject_Destroy(sipCpp, sipIsErr);
%End
%ConvertToSubClassCode
const wxClassInfo* info = sipCpp->GetClassInfo();
wxString name = info->GetClassName();
bool exists = sipFindType(name) != NULL;
while (info && !exists) {
info = info->GetBaseClass1();
name = info->GetClassName();
exists = sipFindType(name) != NULL;
}
if (info)
sipType = sipFindType(name);
else
sipType = NULL;
%End
}; // end of class wxObject
typedef wxRefCounter wxObjectRefData;
//---------------------------------------------------------------------------