mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-07 12:30:07 +01:00
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@66469 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
122 lines
2.3 KiB
Plaintext
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;
|
|
|
|
|
|
//---------------------------------------------------------------------------
|
|
|