mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-12-16 01:30:07 +01:00
generated sip and c++ files
git-svn-id: https://svn.wxwidgets.org/svn/wx/sandbox/trunk/Phoenix@66113 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
3
sip/cpp/_core.sbf
Normal file
3
sip/cpp/_core.sbf
Normal file
@@ -0,0 +1,3 @@
|
||||
target = _core
|
||||
sources = sip_corecmodule.cpp sip_corewxRect2DDouble.cpp sip_corewxPoint2DDouble.cpp sip_corewxRealPoint.cpp sip_corewxRect.cpp sip_corewxSize.cpp sip_corewxPoint.cpp sip_corewxClassInfo.cpp sip_corewxObject.cpp sip_corewxRefCounter.cpp sip_corewxString.cpp
|
||||
headers = sipAPI_core.h
|
||||
1805
sip/cpp/sipAPI_core.h
Normal file
1805
sip/cpp/sipAPI_core.h
Normal file
File diff suppressed because it is too large
Load Diff
1930
sip/cpp/sip_corecmodule.cpp
Normal file
1930
sip/cpp/sip_corecmodule.cpp
Normal file
File diff suppressed because it is too large
Load Diff
415
sip/cpp/sip_corewxClassInfo.cpp
Normal file
415
sip/cpp/sip_corewxClassInfo.cpp
Normal file
@@ -0,0 +1,415 @@
|
||||
/*
|
||||
* Interface wrapper code.
|
||||
*
|
||||
* Generated by SIP 4.12-snapshot-eac351f5cca7 on Wed Nov 10 15:32:07 2010
|
||||
*
|
||||
* Copyright: (c) 2010 by Total Control Software
|
||||
* Licence: wxWindows license
|
||||
*/
|
||||
|
||||
#include "sipAPI_core.h"
|
||||
|
||||
#line 84 "sip/gen/object.sip"
|
||||
#include <wx/object.h>
|
||||
#line 15 "sip_corewxClassInfo.cpp"
|
||||
|
||||
#line 40 "sip/gen/object.sip"
|
||||
#include <wx/object.h>
|
||||
#line 19 "sip_corewxClassInfo.cpp"
|
||||
|
||||
|
||||
PyDoc_STRVAR(doc_wxClassInfo_CreateObject, "ClassInfo.CreateObject() -> Object");
|
||||
|
||||
extern "C" {static PyObject *meth_wxClassInfo_CreateObject(PyObject *, PyObject *);}
|
||||
static PyObject *meth_wxClassInfo_CreateObject(PyObject *sipSelf, PyObject *sipArgs)
|
||||
{
|
||||
PyObject *sipParseErr = NULL;
|
||||
|
||||
{
|
||||
wxClassInfo *sipCpp;
|
||||
|
||||
if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxClassInfo, &sipCpp))
|
||||
{
|
||||
wxObject *sipRes;
|
||||
|
||||
try
|
||||
{
|
||||
sipRes = sipCpp->CreateObject();
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
sipRaiseUnknownException();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return sipConvertFromType(sipRes,sipType_wxObject,NULL);
|
||||
}
|
||||
}
|
||||
|
||||
/* Raise an exception if the arguments couldn't be parsed. */
|
||||
sipNoMethod(sipParseErr, sipName_ClassInfo, sipName_CreateObject, doc_wxClassInfo_CreateObject);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
PyDoc_STRVAR(doc_wxClassInfo_GetBaseClassName1, "ClassInfo.GetBaseClassName1() -> str");
|
||||
|
||||
extern "C" {static PyObject *meth_wxClassInfo_GetBaseClassName1(PyObject *, PyObject *);}
|
||||
static PyObject *meth_wxClassInfo_GetBaseClassName1(PyObject *sipSelf, PyObject *sipArgs)
|
||||
{
|
||||
PyObject *sipParseErr = NULL;
|
||||
|
||||
{
|
||||
wxClassInfo *sipCpp;
|
||||
|
||||
if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxClassInfo, &sipCpp))
|
||||
{
|
||||
const wxChar *sipRes;
|
||||
|
||||
try
|
||||
{
|
||||
sipRes = sipCpp->GetBaseClassName1();
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
sipRaiseUnknownException();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (sipRes == NULL)
|
||||
{
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
|
||||
return PyUnicode_FromWideChar(sipRes,(SIP_SSIZE_T)wcslen(sipRes));
|
||||
}
|
||||
}
|
||||
|
||||
/* Raise an exception if the arguments couldn't be parsed. */
|
||||
sipNoMethod(sipParseErr, sipName_ClassInfo, sipName_GetBaseClassName1, doc_wxClassInfo_GetBaseClassName1);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
PyDoc_STRVAR(doc_wxClassInfo_GetBaseClassName2, "ClassInfo.GetBaseClassName2() -> str");
|
||||
|
||||
extern "C" {static PyObject *meth_wxClassInfo_GetBaseClassName2(PyObject *, PyObject *);}
|
||||
static PyObject *meth_wxClassInfo_GetBaseClassName2(PyObject *sipSelf, PyObject *sipArgs)
|
||||
{
|
||||
PyObject *sipParseErr = NULL;
|
||||
|
||||
{
|
||||
wxClassInfo *sipCpp;
|
||||
|
||||
if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxClassInfo, &sipCpp))
|
||||
{
|
||||
const wxChar *sipRes;
|
||||
|
||||
try
|
||||
{
|
||||
sipRes = sipCpp->GetBaseClassName2();
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
sipRaiseUnknownException();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (sipRes == NULL)
|
||||
{
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
|
||||
return PyUnicode_FromWideChar(sipRes,(SIP_SSIZE_T)wcslen(sipRes));
|
||||
}
|
||||
}
|
||||
|
||||
/* Raise an exception if the arguments couldn't be parsed. */
|
||||
sipNoMethod(sipParseErr, sipName_ClassInfo, sipName_GetBaseClassName2, doc_wxClassInfo_GetBaseClassName2);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
PyDoc_STRVAR(doc_wxClassInfo_GetClassName, "ClassInfo.GetClassName() -> str");
|
||||
|
||||
extern "C" {static PyObject *meth_wxClassInfo_GetClassName(PyObject *, PyObject *);}
|
||||
static PyObject *meth_wxClassInfo_GetClassName(PyObject *sipSelf, PyObject *sipArgs)
|
||||
{
|
||||
PyObject *sipParseErr = NULL;
|
||||
|
||||
{
|
||||
wxClassInfo *sipCpp;
|
||||
|
||||
if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxClassInfo, &sipCpp))
|
||||
{
|
||||
const wxChar *sipRes;
|
||||
|
||||
try
|
||||
{
|
||||
sipRes = sipCpp->GetClassName();
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
sipRaiseUnknownException();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (sipRes == NULL)
|
||||
{
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
|
||||
return PyUnicode_FromWideChar(sipRes,(SIP_SSIZE_T)wcslen(sipRes));
|
||||
}
|
||||
}
|
||||
|
||||
/* Raise an exception if the arguments couldn't be parsed. */
|
||||
sipNoMethod(sipParseErr, sipName_ClassInfo, sipName_GetClassName, doc_wxClassInfo_GetClassName);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
PyDoc_STRVAR(doc_wxClassInfo_GetSize, "ClassInfo.GetSize() -> int");
|
||||
|
||||
extern "C" {static PyObject *meth_wxClassInfo_GetSize(PyObject *, PyObject *);}
|
||||
static PyObject *meth_wxClassInfo_GetSize(PyObject *sipSelf, PyObject *sipArgs)
|
||||
{
|
||||
PyObject *sipParseErr = NULL;
|
||||
|
||||
{
|
||||
wxClassInfo *sipCpp;
|
||||
|
||||
if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxClassInfo, &sipCpp))
|
||||
{
|
||||
int sipRes;
|
||||
|
||||
try
|
||||
{
|
||||
sipRes = sipCpp->GetSize();
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
sipRaiseUnknownException();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return SIPLong_FromLong(sipRes);
|
||||
}
|
||||
}
|
||||
|
||||
/* Raise an exception if the arguments couldn't be parsed. */
|
||||
sipNoMethod(sipParseErr, sipName_ClassInfo, sipName_GetSize, doc_wxClassInfo_GetSize);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
PyDoc_STRVAR(doc_wxClassInfo_IsDynamic, "ClassInfo.IsDynamic() -> bool");
|
||||
|
||||
extern "C" {static PyObject *meth_wxClassInfo_IsDynamic(PyObject *, PyObject *);}
|
||||
static PyObject *meth_wxClassInfo_IsDynamic(PyObject *sipSelf, PyObject *sipArgs)
|
||||
{
|
||||
PyObject *sipParseErr = NULL;
|
||||
|
||||
{
|
||||
wxClassInfo *sipCpp;
|
||||
|
||||
if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxClassInfo, &sipCpp))
|
||||
{
|
||||
bool sipRes;
|
||||
|
||||
try
|
||||
{
|
||||
sipRes = sipCpp->IsDynamic();
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
sipRaiseUnknownException();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return PyBool_FromLong(sipRes);
|
||||
}
|
||||
}
|
||||
|
||||
/* Raise an exception if the arguments couldn't be parsed. */
|
||||
sipNoMethod(sipParseErr, sipName_ClassInfo, sipName_IsDynamic, doc_wxClassInfo_IsDynamic);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
PyDoc_STRVAR(doc_wxClassInfo_IsKindOf, "ClassInfo.IsKindOf(ClassInfo) -> bool");
|
||||
|
||||
extern "C" {static PyObject *meth_wxClassInfo_IsKindOf(PyObject *, PyObject *, PyObject *);}
|
||||
static PyObject *meth_wxClassInfo_IsKindOf(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
|
||||
{
|
||||
PyObject *sipParseErr = NULL;
|
||||
|
||||
{
|
||||
const wxClassInfo * info;
|
||||
wxClassInfo *sipCpp;
|
||||
|
||||
static const char *sipKwdList[] = {
|
||||
sipName_info,
|
||||
};
|
||||
|
||||
if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ8", &sipSelf, sipType_wxClassInfo, &sipCpp, sipType_wxClassInfo, &info))
|
||||
{
|
||||
bool sipRes;
|
||||
|
||||
try
|
||||
{
|
||||
sipRes = sipCpp->IsKindOf(info);
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
sipRaiseUnknownException();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return PyBool_FromLong(sipRes);
|
||||
}
|
||||
}
|
||||
|
||||
/* Raise an exception if the arguments couldn't be parsed. */
|
||||
sipNoMethod(sipParseErr, sipName_ClassInfo, sipName_IsKindOf, doc_wxClassInfo_IsKindOf);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
PyDoc_STRVAR(doc_wxClassInfo_FindClass, "ClassInfo.FindClass(wxString) -> ClassInfo");
|
||||
|
||||
extern "C" {static PyObject *meth_wxClassInfo_FindClass(PyObject *, PyObject *, PyObject *);}
|
||||
static PyObject *meth_wxClassInfo_FindClass(PyObject *, PyObject *sipArgs, PyObject *sipKwds)
|
||||
{
|
||||
PyObject *sipParseErr = NULL;
|
||||
|
||||
{
|
||||
const wxString * className;
|
||||
int classNameState = 0;
|
||||
|
||||
static const char *sipKwdList[] = {
|
||||
sipName_className,
|
||||
};
|
||||
|
||||
if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "J1", sipType_wxString,&className, &classNameState))
|
||||
{
|
||||
wxClassInfo *sipRes;
|
||||
|
||||
try
|
||||
{
|
||||
sipRes = wxClassInfo::FindClass(*className);
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
sipReleaseType(const_cast<wxString *>(className),sipType_wxString,classNameState);
|
||||
sipRaiseUnknownException();
|
||||
return NULL;
|
||||
}
|
||||
sipReleaseType(const_cast<wxString *>(className),sipType_wxString,classNameState);
|
||||
|
||||
return sipConvertFromType(sipRes,sipType_wxClassInfo,NULL);
|
||||
}
|
||||
}
|
||||
|
||||
/* Raise an exception if the arguments couldn't be parsed. */
|
||||
sipNoMethod(sipParseErr, sipName_ClassInfo, sipName_FindClass, doc_wxClassInfo_FindClass);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
/* Cast a pointer to a type somewhere in its superclass hierarchy. */
|
||||
extern "C" {static void *cast_wxClassInfo(void *, const sipTypeDef *);}
|
||||
static void *cast_wxClassInfo(void *ptr, const sipTypeDef *targetType)
|
||||
{
|
||||
if (targetType == sipType_wxClassInfo)
|
||||
return ptr;
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
/* Call the instance's destructor. */
|
||||
extern "C" {static void release_wxClassInfo(void *, int);}
|
||||
static void release_wxClassInfo(void *sipCppV,int)
|
||||
{
|
||||
delete reinterpret_cast<wxClassInfo *>(sipCppV);
|
||||
}
|
||||
|
||||
|
||||
extern "C" {static void dealloc_wxClassInfo(sipSimpleWrapper *);}
|
||||
static void dealloc_wxClassInfo(sipSimpleWrapper *sipSelf)
|
||||
{
|
||||
if (sipIsPyOwned(sipSelf))
|
||||
{
|
||||
release_wxClassInfo(sipGetAddress(sipSelf),0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static PyMethodDef methods_wxClassInfo[] = {
|
||||
{SIP_MLNAME_CAST(sipName_CreateObject), meth_wxClassInfo_CreateObject, METH_VARARGS, SIP_MLDOC_CAST(doc_wxClassInfo_CreateObject)},
|
||||
{SIP_MLNAME_CAST(sipName_FindClass), (PyCFunction)meth_wxClassInfo_FindClass, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxClassInfo_FindClass)},
|
||||
{SIP_MLNAME_CAST(sipName_GetBaseClassName1), meth_wxClassInfo_GetBaseClassName1, METH_VARARGS, SIP_MLDOC_CAST(doc_wxClassInfo_GetBaseClassName1)},
|
||||
{SIP_MLNAME_CAST(sipName_GetBaseClassName2), meth_wxClassInfo_GetBaseClassName2, METH_VARARGS, SIP_MLDOC_CAST(doc_wxClassInfo_GetBaseClassName2)},
|
||||
{SIP_MLNAME_CAST(sipName_GetClassName), meth_wxClassInfo_GetClassName, METH_VARARGS, SIP_MLDOC_CAST(doc_wxClassInfo_GetClassName)},
|
||||
{SIP_MLNAME_CAST(sipName_GetSize), meth_wxClassInfo_GetSize, METH_VARARGS, SIP_MLDOC_CAST(doc_wxClassInfo_GetSize)},
|
||||
{SIP_MLNAME_CAST(sipName_IsDynamic), meth_wxClassInfo_IsDynamic, METH_VARARGS, SIP_MLDOC_CAST(doc_wxClassInfo_IsDynamic)},
|
||||
{SIP_MLNAME_CAST(sipName_IsKindOf), (PyCFunction)meth_wxClassInfo_IsKindOf, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxClassInfo_IsKindOf)}
|
||||
};
|
||||
|
||||
|
||||
sipClassTypeDef sipTypeDef__core_wxClassInfo = {
|
||||
{
|
||||
-1,
|
||||
0,
|
||||
0,
|
||||
SIP_TYPE_ABSTRACT|SIP_TYPE_CLASS,
|
||||
sipNameNr_wxClassInfo,
|
||||
{0}
|
||||
},
|
||||
{
|
||||
sipNameNr_ClassInfo,
|
||||
{0, 0, 1},
|
||||
8, methods_wxClassInfo,
|
||||
0, 0,
|
||||
0, 0,
|
||||
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
|
||||
},
|
||||
0,
|
||||
-1,
|
||||
-1,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
#if PY_MAJOR_VERSION >= 3
|
||||
0,
|
||||
0,
|
||||
#else
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
#endif
|
||||
dealloc_wxClassInfo,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
release_wxClassInfo,
|
||||
cast_wxClassInfo,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
};
|
||||
543
sip/cpp/sip_corewxObject.cpp
Normal file
543
sip/cpp/sip_corewxObject.cpp
Normal file
@@ -0,0 +1,543 @@
|
||||
/*
|
||||
* Interface wrapper code.
|
||||
*
|
||||
* Generated by SIP 4.12-snapshot-eac351f5cca7 on Wed Nov 10 15:32:07 2010
|
||||
*
|
||||
* Copyright: (c) 2010 by Total Control Software
|
||||
* Licence: wxWindows license
|
||||
*/
|
||||
|
||||
#include "sipAPI_core.h"
|
||||
|
||||
#line 40 "sip/gen/object.sip"
|
||||
#include <wx/object.h>
|
||||
#line 15 "sip_corewxObject.cpp"
|
||||
|
||||
#line 17 "sip/gen/object.sip"
|
||||
#include <wx/object.h>
|
||||
#line 19 "sip_corewxObject.cpp"
|
||||
#line 84 "sip/gen/object.sip"
|
||||
#include <wx/object.h>
|
||||
#line 22 "sip_corewxObject.cpp"
|
||||
|
||||
|
||||
class sipwxObject : public wxObject
|
||||
{
|
||||
public:
|
||||
sipwxObject();
|
||||
sipwxObject(const wxObject&);
|
||||
virtual ~sipwxObject();
|
||||
|
||||
/*
|
||||
* There is a protected method for every virtual method visible from
|
||||
* this class.
|
||||
*/
|
||||
protected:
|
||||
wxClassInfo * GetClassInfo();
|
||||
|
||||
public:
|
||||
sipSimpleWrapper *sipPySelf;
|
||||
|
||||
private:
|
||||
sipwxObject(const sipwxObject &);
|
||||
sipwxObject &operator = (const sipwxObject &);
|
||||
|
||||
char sipPyMethods[1];
|
||||
};
|
||||
|
||||
sipwxObject::sipwxObject(): wxObject(), sipPySelf(0)
|
||||
{
|
||||
memset(sipPyMethods, 0, sizeof (sipPyMethods));
|
||||
}
|
||||
|
||||
sipwxObject::sipwxObject(const wxObject& other): wxObject(other), sipPySelf(0)
|
||||
{
|
||||
memset(sipPyMethods, 0, sizeof (sipPyMethods));
|
||||
}
|
||||
|
||||
sipwxObject::~sipwxObject()
|
||||
{
|
||||
sipCommonDtor(sipPySelf);
|
||||
}
|
||||
|
||||
wxClassInfo * sipwxObject::GetClassInfo()
|
||||
{
|
||||
sip_gilstate_t sipGILState;
|
||||
PyObject *sipMeth;
|
||||
|
||||
sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_GetClassInfo);
|
||||
|
||||
if (!sipMeth)
|
||||
return wxObject::GetClassInfo();
|
||||
|
||||
extern wxClassInfo * sipVH__core_0(sip_gilstate_t,PyObject *);
|
||||
|
||||
return sipVH__core_0(sipGILState,sipMeth);
|
||||
}
|
||||
|
||||
|
||||
PyDoc_STRVAR(doc_wxObject_GetClassInfo, "Object.GetClassInfo() -> ClassInfo");
|
||||
|
||||
extern "C" {static PyObject *meth_wxObject_GetClassInfo(PyObject *, PyObject *);}
|
||||
static PyObject *meth_wxObject_GetClassInfo(PyObject *sipSelf, PyObject *sipArgs)
|
||||
{
|
||||
PyObject *sipParseErr = NULL;
|
||||
bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));
|
||||
|
||||
{
|
||||
wxObject *sipCpp;
|
||||
|
||||
if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxObject, &sipCpp))
|
||||
{
|
||||
wxClassInfo *sipRes;
|
||||
|
||||
try
|
||||
{
|
||||
sipRes = (sipSelfWasArg ? sipCpp->wxObject::GetClassInfo() : sipCpp->GetClassInfo());
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
sipRaiseUnknownException();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return sipConvertFromType(sipRes,sipType_wxClassInfo,NULL);
|
||||
}
|
||||
}
|
||||
|
||||
/* Raise an exception if the arguments couldn't be parsed. */
|
||||
sipNoMethod(sipParseErr, sipName_Object, sipName_GetClassInfo, doc_wxObject_GetClassInfo);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
PyDoc_STRVAR(doc_wxObject_GetRefData, "Object.GetRefData() -> RefCounter");
|
||||
|
||||
extern "C" {static PyObject *meth_wxObject_GetRefData(PyObject *, PyObject *);}
|
||||
static PyObject *meth_wxObject_GetRefData(PyObject *sipSelf, PyObject *sipArgs)
|
||||
{
|
||||
PyObject *sipParseErr = NULL;
|
||||
|
||||
{
|
||||
wxObject *sipCpp;
|
||||
|
||||
if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxObject, &sipCpp))
|
||||
{
|
||||
wxObjectRefData *sipRes;
|
||||
|
||||
try
|
||||
{
|
||||
sipRes = sipCpp->GetRefData();
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
sipRaiseUnknownException();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return sipConvertFromType(sipRes,sipType_wxRefCounter,NULL);
|
||||
}
|
||||
}
|
||||
|
||||
/* Raise an exception if the arguments couldn't be parsed. */
|
||||
sipNoMethod(sipParseErr, sipName_Object, sipName_GetRefData, doc_wxObject_GetRefData);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
PyDoc_STRVAR(doc_wxObject_IsKindOf, "Object.IsKindOf(ClassInfo) -> bool");
|
||||
|
||||
extern "C" {static PyObject *meth_wxObject_IsKindOf(PyObject *, PyObject *, PyObject *);}
|
||||
static PyObject *meth_wxObject_IsKindOf(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
|
||||
{
|
||||
PyObject *sipParseErr = NULL;
|
||||
|
||||
{
|
||||
const wxClassInfo * info;
|
||||
wxObject *sipCpp;
|
||||
|
||||
static const char *sipKwdList[] = {
|
||||
sipName_info,
|
||||
};
|
||||
|
||||
if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ8", &sipSelf, sipType_wxObject, &sipCpp, sipType_wxClassInfo, &info))
|
||||
{
|
||||
bool sipRes;
|
||||
|
||||
try
|
||||
{
|
||||
sipRes = sipCpp->IsKindOf(info);
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
sipRaiseUnknownException();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return PyBool_FromLong(sipRes);
|
||||
}
|
||||
}
|
||||
|
||||
/* Raise an exception if the arguments couldn't be parsed. */
|
||||
sipNoMethod(sipParseErr, sipName_Object, sipName_IsKindOf, doc_wxObject_IsKindOf);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
PyDoc_STRVAR(doc_wxObject_IsSameAs, "Object.IsSameAs(Object) -> bool");
|
||||
|
||||
extern "C" {static PyObject *meth_wxObject_IsSameAs(PyObject *, PyObject *, PyObject *);}
|
||||
static PyObject *meth_wxObject_IsSameAs(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
|
||||
{
|
||||
PyObject *sipParseErr = NULL;
|
||||
|
||||
{
|
||||
const wxObject * obj;
|
||||
wxObject *sipCpp;
|
||||
|
||||
static const char *sipKwdList[] = {
|
||||
sipName_obj,
|
||||
};
|
||||
|
||||
if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ9", &sipSelf, sipType_wxObject, &sipCpp, sipType_wxObject, &obj))
|
||||
{
|
||||
bool sipRes;
|
||||
|
||||
try
|
||||
{
|
||||
sipRes = sipCpp->IsSameAs(*obj);
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
sipRaiseUnknownException();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return PyBool_FromLong(sipRes);
|
||||
}
|
||||
}
|
||||
|
||||
/* Raise an exception if the arguments couldn't be parsed. */
|
||||
sipNoMethod(sipParseErr, sipName_Object, sipName_IsSameAs, doc_wxObject_IsSameAs);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
PyDoc_STRVAR(doc_wxObject_Ref, "Object.Ref(Object)");
|
||||
|
||||
extern "C" {static PyObject *meth_wxObject_Ref(PyObject *, PyObject *, PyObject *);}
|
||||
static PyObject *meth_wxObject_Ref(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
|
||||
{
|
||||
PyObject *sipParseErr = NULL;
|
||||
|
||||
{
|
||||
const wxObject * clone;
|
||||
wxObject *sipCpp;
|
||||
|
||||
static const char *sipKwdList[] = {
|
||||
sipName_clone,
|
||||
};
|
||||
|
||||
if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ9", &sipSelf, sipType_wxObject, &sipCpp, sipType_wxObject, &clone))
|
||||
{
|
||||
try
|
||||
{
|
||||
sipCpp->Ref(*clone);
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
sipRaiseUnknownException();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
}
|
||||
|
||||
/* Raise an exception if the arguments couldn't be parsed. */
|
||||
sipNoMethod(sipParseErr, sipName_Object, sipName_Ref, doc_wxObject_Ref);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
PyDoc_STRVAR(doc_wxObject_SetRefData, "Object.SetRefData(RefCounter)");
|
||||
|
||||
extern "C" {static PyObject *meth_wxObject_SetRefData(PyObject *, PyObject *, PyObject *);}
|
||||
static PyObject *meth_wxObject_SetRefData(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
|
||||
{
|
||||
PyObject *sipParseErr = NULL;
|
||||
|
||||
{
|
||||
wxObjectRefData * data;
|
||||
wxObject *sipCpp;
|
||||
|
||||
static const char *sipKwdList[] = {
|
||||
sipName_data,
|
||||
};
|
||||
|
||||
if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ8", &sipSelf, sipType_wxObject, &sipCpp, sipType_wxRefCounter, &data))
|
||||
{
|
||||
try
|
||||
{
|
||||
sipCpp->SetRefData(data);
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
sipRaiseUnknownException();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
}
|
||||
|
||||
/* Raise an exception if the arguments couldn't be parsed. */
|
||||
sipNoMethod(sipParseErr, sipName_Object, sipName_SetRefData, doc_wxObject_SetRefData);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
PyDoc_STRVAR(doc_wxObject_UnRef, "Object.UnRef()");
|
||||
|
||||
extern "C" {static PyObject *meth_wxObject_UnRef(PyObject *, PyObject *);}
|
||||
static PyObject *meth_wxObject_UnRef(PyObject *sipSelf, PyObject *sipArgs)
|
||||
{
|
||||
PyObject *sipParseErr = NULL;
|
||||
|
||||
{
|
||||
wxObject *sipCpp;
|
||||
|
||||
if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxObject, &sipCpp))
|
||||
{
|
||||
try
|
||||
{
|
||||
sipCpp->UnRef();
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
sipRaiseUnknownException();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
}
|
||||
|
||||
/* Raise an exception if the arguments couldn't be parsed. */
|
||||
sipNoMethod(sipParseErr, sipName_Object, sipName_UnRef, doc_wxObject_UnRef);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
PyDoc_STRVAR(doc_wxObject_UnShare, "Object.UnShare()");
|
||||
|
||||
extern "C" {static PyObject *meth_wxObject_UnShare(PyObject *, PyObject *);}
|
||||
static PyObject *meth_wxObject_UnShare(PyObject *sipSelf, PyObject *sipArgs)
|
||||
{
|
||||
PyObject *sipParseErr = NULL;
|
||||
|
||||
{
|
||||
wxObject *sipCpp;
|
||||
|
||||
if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxObject, &sipCpp))
|
||||
{
|
||||
try
|
||||
{
|
||||
sipCpp->UnShare();
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
sipRaiseUnknownException();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
}
|
||||
|
||||
/* Raise an exception if the arguments couldn't be parsed. */
|
||||
sipNoMethod(sipParseErr, sipName_Object, sipName_UnShare, doc_wxObject_UnShare);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
/* Cast a pointer to a type somewhere in its superclass hierarchy. */
|
||||
extern "C" {static void *cast_wxObject(void *, const sipTypeDef *);}
|
||||
static void *cast_wxObject(void *ptr, const sipTypeDef *targetType)
|
||||
{
|
||||
if (targetType == sipType_wxObject)
|
||||
return ptr;
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
/* Call the instance's destructor. */
|
||||
extern "C" {static void release_wxObject(void *, int);}
|
||||
static void release_wxObject(void *sipCppV,int sipState)
|
||||
{
|
||||
if (sipState & SIP_DERIVED_CLASS)
|
||||
delete reinterpret_cast<sipwxObject *>(sipCppV);
|
||||
else
|
||||
delete reinterpret_cast<wxObject *>(sipCppV);
|
||||
}
|
||||
|
||||
|
||||
extern "C" {static void assign_wxObject(void *, SIP_SSIZE_T, const void *);}
|
||||
static void assign_wxObject(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
|
||||
{
|
||||
reinterpret_cast<wxObject *>(sipDst)[sipDstIdx] = *reinterpret_cast<const wxObject *>(sipSrc);
|
||||
}
|
||||
|
||||
|
||||
extern "C" {static void *array_wxObject(SIP_SSIZE_T);}
|
||||
static void *array_wxObject(SIP_SSIZE_T sipNrElem)
|
||||
{
|
||||
return new wxObject[sipNrElem];
|
||||
}
|
||||
|
||||
|
||||
extern "C" {static void *copy_wxObject(const void *, SIP_SSIZE_T);}
|
||||
static void *copy_wxObject(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
|
||||
{
|
||||
return new wxObject(reinterpret_cast<const wxObject *>(sipSrc)[sipSrcIdx]);
|
||||
}
|
||||
|
||||
|
||||
extern "C" {static void dealloc_wxObject(sipSimpleWrapper *);}
|
||||
static void dealloc_wxObject(sipSimpleWrapper *sipSelf)
|
||||
{
|
||||
if (sipIsDerived(sipSelf))
|
||||
reinterpret_cast<sipwxObject *>(sipGetAddress(sipSelf))->sipPySelf = NULL;
|
||||
|
||||
if (sipIsPyOwned(sipSelf))
|
||||
{
|
||||
release_wxObject(sipGetAddress(sipSelf),sipSelf->flags);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
extern "C" {static void *init_wxObject(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
|
||||
static void *init_wxObject(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
|
||||
{
|
||||
sipwxObject *sipCpp = 0;
|
||||
|
||||
{
|
||||
if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
|
||||
{
|
||||
try
|
||||
{
|
||||
sipCpp = new sipwxObject();
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
sipRaiseUnknownException();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
sipCpp->sipPySelf = sipSelf;
|
||||
|
||||
return sipCpp;
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
const wxObject * other;
|
||||
|
||||
static const char *sipKwdList[] = {
|
||||
sipName_other,
|
||||
};
|
||||
|
||||
if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J9", sipType_wxObject, &other))
|
||||
{
|
||||
try
|
||||
{
|
||||
sipCpp = new sipwxObject(*other);
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
sipRaiseUnknownException();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
sipCpp->sipPySelf = sipSelf;
|
||||
|
||||
return sipCpp;
|
||||
}
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static PyMethodDef methods_wxObject[] = {
|
||||
{SIP_MLNAME_CAST(sipName_GetClassInfo), meth_wxObject_GetClassInfo, METH_VARARGS, SIP_MLDOC_CAST(doc_wxObject_GetClassInfo)},
|
||||
{SIP_MLNAME_CAST(sipName_GetRefData), meth_wxObject_GetRefData, METH_VARARGS, SIP_MLDOC_CAST(doc_wxObject_GetRefData)},
|
||||
{SIP_MLNAME_CAST(sipName_IsKindOf), (PyCFunction)meth_wxObject_IsKindOf, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxObject_IsKindOf)},
|
||||
{SIP_MLNAME_CAST(sipName_IsSameAs), (PyCFunction)meth_wxObject_IsSameAs, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxObject_IsSameAs)},
|
||||
{SIP_MLNAME_CAST(sipName_Ref), (PyCFunction)meth_wxObject_Ref, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxObject_Ref)},
|
||||
{SIP_MLNAME_CAST(sipName_SetRefData), (PyCFunction)meth_wxObject_SetRefData, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxObject_SetRefData)},
|
||||
{SIP_MLNAME_CAST(sipName_UnRef), meth_wxObject_UnRef, METH_VARARGS, SIP_MLDOC_CAST(doc_wxObject_UnRef)},
|
||||
{SIP_MLNAME_CAST(sipName_UnShare), meth_wxObject_UnShare, METH_VARARGS, SIP_MLDOC_CAST(doc_wxObject_UnShare)}
|
||||
};
|
||||
|
||||
PyDoc_STRVAR(doc_wxObject, "\1Object()\n"
|
||||
"Object(Object)");
|
||||
|
||||
|
||||
sipClassTypeDef sipTypeDef__core_wxObject = {
|
||||
{
|
||||
-1,
|
||||
0,
|
||||
0,
|
||||
SIP_TYPE_CLASS,
|
||||
sipNameNr_wxObject,
|
||||
{0}
|
||||
},
|
||||
{
|
||||
sipNameNr_Object,
|
||||
{0, 0, 1},
|
||||
8, methods_wxObject,
|
||||
0, 0,
|
||||
0, 0,
|
||||
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
|
||||
},
|
||||
doc_wxObject,
|
||||
-1,
|
||||
-1,
|
||||
0,
|
||||
0,
|
||||
init_wxObject,
|
||||
0,
|
||||
0,
|
||||
#if PY_MAJOR_VERSION >= 3
|
||||
0,
|
||||
0,
|
||||
#else
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
#endif
|
||||
dealloc_wxObject,
|
||||
assign_wxObject,
|
||||
array_wxObject,
|
||||
copy_wxObject,
|
||||
release_wxObject,
|
||||
cast_wxObject,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
};
|
||||
919
sip/cpp/sip_corewxPoint.cpp
Normal file
919
sip/cpp/sip_corewxPoint.cpp
Normal file
@@ -0,0 +1,919 @@
|
||||
/*
|
||||
* Interface wrapper code.
|
||||
*
|
||||
* Generated by SIP 4.12-snapshot-eac351f5cca7 on Wed Nov 10 15:32:07 2010
|
||||
*
|
||||
* Copyright: (c) 2010 by Total Control Software
|
||||
* Licence: wxWindows license
|
||||
*/
|
||||
|
||||
#include "sipAPI_core.h"
|
||||
|
||||
#line 22 "sip/gen/gdicmn.sip"
|
||||
#include <wx/gdicmn.h>
|
||||
#line 15 "sip_corewxPoint.cpp"
|
||||
|
||||
#line 404 "sip/gen/gdicmn.sip"
|
||||
#include <wx/gdicmn.h>
|
||||
#line 19 "sip_corewxPoint.cpp"
|
||||
#line 119 "sip/gen/gdicmn.sip"
|
||||
#include <wx/gdicmn.h>
|
||||
#line 22 "sip_corewxPoint.cpp"
|
||||
|
||||
|
||||
PyDoc_STRVAR(doc_wxPoint_IsFullySpecified, "Point.IsFullySpecified() -> bool");
|
||||
|
||||
extern "C" {static PyObject *meth_wxPoint_IsFullySpecified(PyObject *, PyObject *);}
|
||||
static PyObject *meth_wxPoint_IsFullySpecified(PyObject *sipSelf, PyObject *sipArgs)
|
||||
{
|
||||
PyObject *sipParseErr = NULL;
|
||||
|
||||
{
|
||||
wxPoint *sipCpp;
|
||||
|
||||
if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxPoint, &sipCpp))
|
||||
{
|
||||
bool sipRes;
|
||||
|
||||
try
|
||||
{
|
||||
sipRes = sipCpp->IsFullySpecified();
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
sipRaiseUnknownException();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return PyBool_FromLong(sipRes);
|
||||
}
|
||||
}
|
||||
|
||||
/* Raise an exception if the arguments couldn't be parsed. */
|
||||
sipNoMethod(sipParseErr, sipName_Point, sipName_IsFullySpecified, doc_wxPoint_IsFullySpecified);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
PyDoc_STRVAR(doc_wxPoint_SetDefaults, "Point.SetDefaults(Point)");
|
||||
|
||||
extern "C" {static PyObject *meth_wxPoint_SetDefaults(PyObject *, PyObject *, PyObject *);}
|
||||
static PyObject *meth_wxPoint_SetDefaults(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
|
||||
{
|
||||
PyObject *sipParseErr = NULL;
|
||||
|
||||
{
|
||||
const wxPoint * pt;
|
||||
int ptState = 0;
|
||||
wxPoint *sipCpp;
|
||||
|
||||
static const char *sipKwdList[] = {
|
||||
sipName_pt,
|
||||
};
|
||||
|
||||
if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1", &sipSelf, sipType_wxPoint, &sipCpp, sipType_wxPoint, &pt, &ptState))
|
||||
{
|
||||
try
|
||||
{
|
||||
sipCpp->SetDefaults(*pt);
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
sipReleaseType(const_cast<wxPoint *>(pt),sipType_wxPoint,ptState);
|
||||
sipRaiseUnknownException();
|
||||
return NULL;
|
||||
}
|
||||
sipReleaseType(const_cast<wxPoint *>(pt),sipType_wxPoint,ptState);
|
||||
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
}
|
||||
|
||||
/* Raise an exception if the arguments couldn't be parsed. */
|
||||
sipNoMethod(sipParseErr, sipName_Point, sipName_SetDefaults, doc_wxPoint_SetDefaults);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
extern "C" {static PyObject *slot_wxPoint___eq__(PyObject *,PyObject *);}
|
||||
static PyObject *slot_wxPoint___eq__(PyObject *sipSelf,PyObject *sipArg)
|
||||
{
|
||||
wxPoint *sipCpp = reinterpret_cast<wxPoint *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_wxPoint));
|
||||
|
||||
if (!sipCpp)
|
||||
return 0;
|
||||
|
||||
PyObject *sipParseErr = NULL;
|
||||
|
||||
{
|
||||
const wxPoint * p2;
|
||||
int p2State = 0;
|
||||
|
||||
if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_wxPoint, &p2, &p2State))
|
||||
{
|
||||
bool sipRes;
|
||||
|
||||
try
|
||||
{
|
||||
sipRes = operator==((*sipCpp), *p2);
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
sipReleaseType(const_cast<wxPoint *>(p2),sipType_wxPoint,p2State);
|
||||
sipRaiseUnknownException();
|
||||
return NULL;
|
||||
}
|
||||
sipReleaseType(const_cast<wxPoint *>(p2),sipType_wxPoint,p2State);
|
||||
|
||||
return PyBool_FromLong(sipRes);
|
||||
}
|
||||
}
|
||||
|
||||
Py_XDECREF(sipParseErr);
|
||||
|
||||
if (sipParseErr == Py_None)
|
||||
return NULL;
|
||||
|
||||
return sipPySlotExtend(&sipModuleAPI__core,eq_slot,sipType_wxPoint,sipSelf,sipArg);
|
||||
}
|
||||
|
||||
|
||||
extern "C" {static PyObject *slot_wxPoint___ne__(PyObject *,PyObject *);}
|
||||
static PyObject *slot_wxPoint___ne__(PyObject *sipSelf,PyObject *sipArg)
|
||||
{
|
||||
wxPoint *sipCpp = reinterpret_cast<wxPoint *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_wxPoint));
|
||||
|
||||
if (!sipCpp)
|
||||
return 0;
|
||||
|
||||
PyObject *sipParseErr = NULL;
|
||||
|
||||
{
|
||||
const wxPoint * p2;
|
||||
int p2State = 0;
|
||||
|
||||
if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_wxPoint, &p2, &p2State))
|
||||
{
|
||||
bool sipRes;
|
||||
|
||||
try
|
||||
{
|
||||
sipRes = operator!=((*sipCpp), *p2);
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
sipReleaseType(const_cast<wxPoint *>(p2),sipType_wxPoint,p2State);
|
||||
sipRaiseUnknownException();
|
||||
return NULL;
|
||||
}
|
||||
sipReleaseType(const_cast<wxPoint *>(p2),sipType_wxPoint,p2State);
|
||||
|
||||
return PyBool_FromLong(sipRes);
|
||||
}
|
||||
}
|
||||
|
||||
Py_XDECREF(sipParseErr);
|
||||
|
||||
if (sipParseErr == Py_None)
|
||||
return NULL;
|
||||
|
||||
return sipPySlotExtend(&sipModuleAPI__core,ne_slot,sipType_wxPoint,sipSelf,sipArg);
|
||||
}
|
||||
|
||||
|
||||
extern "C" {static PyObject *slot_wxPoint___add__(PyObject *,PyObject *);}
|
||||
static PyObject *slot_wxPoint___add__(PyObject *sipArg0,PyObject *sipArg1)
|
||||
{
|
||||
PyObject *sipParseErr = NULL;
|
||||
|
||||
{
|
||||
const wxPoint * p;
|
||||
int pState = 0;
|
||||
const wxSize * s;
|
||||
|
||||
if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J9", sipType_wxPoint, &p, &pState, sipType_wxSize, &s))
|
||||
{
|
||||
wxPoint *sipRes;
|
||||
|
||||
try
|
||||
{
|
||||
sipRes = new wxPoint((*p + *s));
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
sipReleaseType(const_cast<wxPoint *>(p),sipType_wxPoint,pState);
|
||||
sipRaiseUnknownException();
|
||||
return NULL;
|
||||
}
|
||||
sipReleaseType(const_cast<wxPoint *>(p),sipType_wxPoint,pState);
|
||||
|
||||
return sipConvertFromNewType(sipRes,sipType_wxPoint,NULL);
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
const wxPoint * p1;
|
||||
int p1State = 0;
|
||||
const wxPoint * p2;
|
||||
int p2State = 0;
|
||||
|
||||
if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_wxPoint, &p1, &p1State, sipType_wxPoint, &p2, &p2State))
|
||||
{
|
||||
wxPoint *sipRes;
|
||||
|
||||
try
|
||||
{
|
||||
sipRes = new wxPoint((*p1 + *p2));
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
sipReleaseType(const_cast<wxPoint *>(p1),sipType_wxPoint,p1State);
|
||||
sipReleaseType(const_cast<wxPoint *>(p2),sipType_wxPoint,p2State);
|
||||
sipRaiseUnknownException();
|
||||
return NULL;
|
||||
}
|
||||
sipReleaseType(const_cast<wxPoint *>(p1),sipType_wxPoint,p1State);
|
||||
sipReleaseType(const_cast<wxPoint *>(p2),sipType_wxPoint,p2State);
|
||||
|
||||
return sipConvertFromNewType(sipRes,sipType_wxPoint,NULL);
|
||||
}
|
||||
}
|
||||
|
||||
Py_XDECREF(sipParseErr);
|
||||
|
||||
if (sipParseErr == Py_None)
|
||||
return NULL;
|
||||
|
||||
return sipPySlotExtend(&sipModuleAPI__core,add_slot,NULL,sipArg0,sipArg1);
|
||||
}
|
||||
|
||||
|
||||
extern "C" {static PyObject *slot_wxPoint___neg__(PyObject *);}
|
||||
static PyObject *slot_wxPoint___neg__(PyObject *sipSelf)
|
||||
{
|
||||
wxPoint *sipCpp = reinterpret_cast<wxPoint *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_wxPoint));
|
||||
|
||||
if (!sipCpp)
|
||||
return 0;
|
||||
|
||||
|
||||
{
|
||||
{
|
||||
wxPoint *sipRes;
|
||||
|
||||
try
|
||||
{
|
||||
sipRes = new wxPoint(-(*sipCpp));
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
sipRaiseUnknownException();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return sipConvertFromNewType(sipRes,sipType_wxPoint,NULL);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
extern "C" {static PyObject *slot_wxPoint___sub__(PyObject *,PyObject *);}
|
||||
static PyObject *slot_wxPoint___sub__(PyObject *sipArg0,PyObject *sipArg1)
|
||||
{
|
||||
PyObject *sipParseErr = NULL;
|
||||
|
||||
{
|
||||
const wxPoint * p;
|
||||
int pState = 0;
|
||||
const wxSize * s;
|
||||
|
||||
if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J9", sipType_wxPoint, &p, &pState, sipType_wxSize, &s))
|
||||
{
|
||||
wxPoint *sipRes;
|
||||
|
||||
try
|
||||
{
|
||||
sipRes = new wxPoint((*p - *s));
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
sipReleaseType(const_cast<wxPoint *>(p),sipType_wxPoint,pState);
|
||||
sipRaiseUnknownException();
|
||||
return NULL;
|
||||
}
|
||||
sipReleaseType(const_cast<wxPoint *>(p),sipType_wxPoint,pState);
|
||||
|
||||
return sipConvertFromNewType(sipRes,sipType_wxPoint,NULL);
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
const wxPoint * p1;
|
||||
int p1State = 0;
|
||||
const wxPoint * p2;
|
||||
int p2State = 0;
|
||||
|
||||
if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_wxPoint, &p1, &p1State, sipType_wxPoint, &p2, &p2State))
|
||||
{
|
||||
wxPoint *sipRes;
|
||||
|
||||
try
|
||||
{
|
||||
sipRes = new wxPoint((*p1 - *p2));
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
sipReleaseType(const_cast<wxPoint *>(p1),sipType_wxPoint,p1State);
|
||||
sipReleaseType(const_cast<wxPoint *>(p2),sipType_wxPoint,p2State);
|
||||
sipRaiseUnknownException();
|
||||
return NULL;
|
||||
}
|
||||
sipReleaseType(const_cast<wxPoint *>(p1),sipType_wxPoint,p1State);
|
||||
sipReleaseType(const_cast<wxPoint *>(p2),sipType_wxPoint,p2State);
|
||||
|
||||
return sipConvertFromNewType(sipRes,sipType_wxPoint,NULL);
|
||||
}
|
||||
}
|
||||
|
||||
Py_XDECREF(sipParseErr);
|
||||
|
||||
if (sipParseErr == Py_None)
|
||||
return NULL;
|
||||
|
||||
return sipPySlotExtend(&sipModuleAPI__core,sub_slot,NULL,sipArg0,sipArg1);
|
||||
}
|
||||
|
||||
|
||||
extern "C" {static PyObject *slot_wxPoint___mul__(PyObject *,PyObject *);}
|
||||
static PyObject *slot_wxPoint___mul__(PyObject *sipArg0,PyObject *sipArg1)
|
||||
{
|
||||
PyObject *sipParseErr = NULL;
|
||||
|
||||
{
|
||||
const wxPoint * s;
|
||||
int sState = 0;
|
||||
int i;
|
||||
|
||||
if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_wxPoint, &s, &sState, &i))
|
||||
{
|
||||
wxPoint *sipRes;
|
||||
|
||||
try
|
||||
{
|
||||
sipRes = new wxPoint((*s * i));
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
sipReleaseType(const_cast<wxPoint *>(s),sipType_wxPoint,sState);
|
||||
sipRaiseUnknownException();
|
||||
return NULL;
|
||||
}
|
||||
sipReleaseType(const_cast<wxPoint *>(s),sipType_wxPoint,sState);
|
||||
|
||||
return sipConvertFromNewType(sipRes,sipType_wxPoint,NULL);
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
int i;
|
||||
const wxPoint * s;
|
||||
int sState = 0;
|
||||
|
||||
if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "iJ1", &i, sipType_wxPoint, &s, &sState))
|
||||
{
|
||||
wxPoint *sipRes;
|
||||
|
||||
try
|
||||
{
|
||||
sipRes = new wxPoint((i * *s));
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
sipReleaseType(const_cast<wxPoint *>(s),sipType_wxPoint,sState);
|
||||
sipRaiseUnknownException();
|
||||
return NULL;
|
||||
}
|
||||
sipReleaseType(const_cast<wxPoint *>(s),sipType_wxPoint,sState);
|
||||
|
||||
return sipConvertFromNewType(sipRes,sipType_wxPoint,NULL);
|
||||
}
|
||||
}
|
||||
|
||||
Py_XDECREF(sipParseErr);
|
||||
|
||||
if (sipParseErr == Py_None)
|
||||
return NULL;
|
||||
|
||||
return sipPySlotExtend(&sipModuleAPI__core,mul_slot,NULL,sipArg0,sipArg1);
|
||||
}
|
||||
|
||||
|
||||
extern "C" {static PyObject *slot_wxPoint___div__(PyObject *,PyObject *);}
|
||||
static PyObject *slot_wxPoint___div__(PyObject *sipArg0,PyObject *sipArg1)
|
||||
{
|
||||
PyObject *sipParseErr = NULL;
|
||||
|
||||
{
|
||||
const wxPoint * s;
|
||||
int sState = 0;
|
||||
int i;
|
||||
|
||||
if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_wxPoint, &s, &sState, &i))
|
||||
{
|
||||
wxPoint *sipRes;
|
||||
|
||||
try
|
||||
{
|
||||
sipRes = new wxPoint((*s / i));
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
sipReleaseType(const_cast<wxPoint *>(s),sipType_wxPoint,sState);
|
||||
sipRaiseUnknownException();
|
||||
return NULL;
|
||||
}
|
||||
sipReleaseType(const_cast<wxPoint *>(s),sipType_wxPoint,sState);
|
||||
|
||||
return sipConvertFromNewType(sipRes,sipType_wxPoint,NULL);
|
||||
}
|
||||
}
|
||||
|
||||
Py_XDECREF(sipParseErr);
|
||||
|
||||
if (sipParseErr == Py_None)
|
||||
return NULL;
|
||||
|
||||
return sipPySlotExtend(&sipModuleAPI__core,div_slot,NULL,sipArg0,sipArg1);
|
||||
}
|
||||
|
||||
|
||||
extern "C" {static PyObject *slot_wxPoint___isub__(PyObject *,PyObject *);}
|
||||
static PyObject *slot_wxPoint___isub__(PyObject *sipSelf,PyObject *sipArg)
|
||||
{
|
||||
if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_wxPoint)))
|
||||
{
|
||||
Py_INCREF(Py_NotImplemented);
|
||||
return Py_NotImplemented;
|
||||
}
|
||||
|
||||
wxPoint *sipCpp = reinterpret_cast<wxPoint *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_wxPoint));
|
||||
|
||||
if (!sipCpp)
|
||||
return 0;
|
||||
|
||||
PyObject *sipParseErr = NULL;
|
||||
|
||||
{
|
||||
const wxPoint * pt;
|
||||
int ptState = 0;
|
||||
|
||||
if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_wxPoint, &pt, &ptState))
|
||||
{
|
||||
try
|
||||
{
|
||||
sipCpp->wxPoint::operator-=(*pt);
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
sipReleaseType(const_cast<wxPoint *>(pt),sipType_wxPoint,ptState);
|
||||
sipRaiseUnknownException();
|
||||
return NULL;
|
||||
}
|
||||
sipReleaseType(const_cast<wxPoint *>(pt),sipType_wxPoint,ptState);
|
||||
|
||||
Py_INCREF(sipSelf);
|
||||
return sipSelf;
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
const wxSize * sz;
|
||||
|
||||
if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_wxSize, &sz))
|
||||
{
|
||||
try
|
||||
{
|
||||
sipCpp->wxPoint::operator-=(*sz);
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
sipRaiseUnknownException();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Py_INCREF(sipSelf);
|
||||
return sipSelf;
|
||||
}
|
||||
}
|
||||
|
||||
Py_XDECREF(sipParseErr);
|
||||
|
||||
if (sipParseErr == Py_None)
|
||||
return NULL;
|
||||
|
||||
PyErr_Clear();
|
||||
|
||||
Py_INCREF(Py_NotImplemented);
|
||||
return Py_NotImplemented;
|
||||
}
|
||||
|
||||
|
||||
extern "C" {static PyObject *slot_wxPoint___iadd__(PyObject *,PyObject *);}
|
||||
static PyObject *slot_wxPoint___iadd__(PyObject *sipSelf,PyObject *sipArg)
|
||||
{
|
||||
if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_wxPoint)))
|
||||
{
|
||||
Py_INCREF(Py_NotImplemented);
|
||||
return Py_NotImplemented;
|
||||
}
|
||||
|
||||
wxPoint *sipCpp = reinterpret_cast<wxPoint *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_wxPoint));
|
||||
|
||||
if (!sipCpp)
|
||||
return 0;
|
||||
|
||||
PyObject *sipParseErr = NULL;
|
||||
|
||||
{
|
||||
const wxPoint * pt;
|
||||
int ptState = 0;
|
||||
|
||||
if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_wxPoint, &pt, &ptState))
|
||||
{
|
||||
try
|
||||
{
|
||||
sipCpp->wxPoint::operator+=(*pt);
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
sipReleaseType(const_cast<wxPoint *>(pt),sipType_wxPoint,ptState);
|
||||
sipRaiseUnknownException();
|
||||
return NULL;
|
||||
}
|
||||
sipReleaseType(const_cast<wxPoint *>(pt),sipType_wxPoint,ptState);
|
||||
|
||||
Py_INCREF(sipSelf);
|
||||
return sipSelf;
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
const wxSize * sz;
|
||||
|
||||
if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_wxSize, &sz))
|
||||
{
|
||||
try
|
||||
{
|
||||
sipCpp->wxPoint::operator+=(*sz);
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
sipRaiseUnknownException();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Py_INCREF(sipSelf);
|
||||
return sipSelf;
|
||||
}
|
||||
}
|
||||
|
||||
Py_XDECREF(sipParseErr);
|
||||
|
||||
if (sipParseErr == Py_None)
|
||||
return NULL;
|
||||
|
||||
PyErr_Clear();
|
||||
|
||||
Py_INCREF(Py_NotImplemented);
|
||||
return Py_NotImplemented;
|
||||
}
|
||||
|
||||
|
||||
/* Cast a pointer to a type somewhere in its superclass hierarchy. */
|
||||
extern "C" {static void *cast_wxPoint(void *, const sipTypeDef *);}
|
||||
static void *cast_wxPoint(void *ptr, const sipTypeDef *targetType)
|
||||
{
|
||||
if (targetType == sipType_wxPoint)
|
||||
return ptr;
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
/* Call the instance's destructor. */
|
||||
extern "C" {static void release_wxPoint(void *, int);}
|
||||
static void release_wxPoint(void *sipCppV,int)
|
||||
{
|
||||
delete reinterpret_cast<wxPoint *>(sipCppV);
|
||||
}
|
||||
|
||||
|
||||
extern "C" {static void assign_wxPoint(void *, SIP_SSIZE_T, const void *);}
|
||||
static void assign_wxPoint(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
|
||||
{
|
||||
reinterpret_cast<wxPoint *>(sipDst)[sipDstIdx] = *reinterpret_cast<const wxPoint *>(sipSrc);
|
||||
}
|
||||
|
||||
|
||||
extern "C" {static void *array_wxPoint(SIP_SSIZE_T);}
|
||||
static void *array_wxPoint(SIP_SSIZE_T sipNrElem)
|
||||
{
|
||||
return new wxPoint[sipNrElem];
|
||||
}
|
||||
|
||||
|
||||
extern "C" {static void *copy_wxPoint(const void *, SIP_SSIZE_T);}
|
||||
static void *copy_wxPoint(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
|
||||
{
|
||||
return new wxPoint(reinterpret_cast<const wxPoint *>(sipSrc)[sipSrcIdx]);
|
||||
}
|
||||
|
||||
|
||||
extern "C" {static void dealloc_wxPoint(sipSimpleWrapper *);}
|
||||
static void dealloc_wxPoint(sipSimpleWrapper *sipSelf)
|
||||
{
|
||||
if (sipIsPyOwned(sipSelf))
|
||||
{
|
||||
release_wxPoint(sipGetAddress(sipSelf),0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
extern "C" {static void *init_wxPoint(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
|
||||
static void *init_wxPoint(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
|
||||
{
|
||||
wxPoint *sipCpp = 0;
|
||||
|
||||
{
|
||||
if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
|
||||
{
|
||||
try
|
||||
{
|
||||
sipCpp = new wxPoint();
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
sipRaiseUnknownException();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return sipCpp;
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
int x;
|
||||
int y;
|
||||
|
||||
static const char *sipKwdList[] = {
|
||||
sipName_x,
|
||||
sipName_y,
|
||||
};
|
||||
|
||||
if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "ii", &x, &y))
|
||||
{
|
||||
try
|
||||
{
|
||||
sipCpp = new wxPoint(x,y);
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
sipRaiseUnknownException();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return sipCpp;
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
const wxRealPoint * pt;
|
||||
|
||||
static const char *sipKwdList[] = {
|
||||
sipName_pt,
|
||||
};
|
||||
|
||||
if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J9", sipType_wxRealPoint, &pt))
|
||||
{
|
||||
try
|
||||
{
|
||||
sipCpp = new wxPoint(*pt);
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
sipRaiseUnknownException();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return sipCpp;
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
const wxPoint * a0;
|
||||
int a0State = 0;
|
||||
|
||||
if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_wxPoint, &a0, &a0State))
|
||||
{
|
||||
try
|
||||
{
|
||||
sipCpp = new wxPoint(*a0);
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
sipReleaseType(const_cast<wxPoint *>(a0),sipType_wxPoint,a0State);
|
||||
sipRaiseUnknownException();
|
||||
return NULL;
|
||||
}
|
||||
sipReleaseType(const_cast<wxPoint *>(a0),sipType_wxPoint,a0State);
|
||||
|
||||
return sipCpp;
|
||||
}
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
extern "C" {static int convertTo_wxPoint(PyObject *, void **, int *, PyObject *);}
|
||||
static int convertTo_wxPoint(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
|
||||
{
|
||||
wxPoint **sipCppPtr = reinterpret_cast<wxPoint **>(sipCppPtrV);
|
||||
|
||||
#line 62 "sip/gen/gdicmn.sip"
|
||||
// is it just a typecheck?
|
||||
if (!sipIsErr) {
|
||||
if (sipCanConvertToType(sipPy, sipType_wxPoint, SIP_NO_CONVERTORS))
|
||||
return 1;
|
||||
|
||||
if (PySequence_Check(sipPy) and PySequence_Size(sipPy) == 2) {
|
||||
int rval = 1;
|
||||
PyObject* o1 = PySequence_ITEM(sipPy, 0);
|
||||
PyObject* o2 = PySequence_ITEM(sipPy, 1);
|
||||
if (!PyNumber_Check(o1) || !PyNumber_Check(o2))
|
||||
rval = 0;
|
||||
Py_DECREF(o1);
|
||||
Py_DECREF(o2);
|
||||
return rval;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
// otherwise do the conversion
|
||||
if (sipPy == Py_None) {
|
||||
*sipCppPtr = new wxPoint(-1, -1);
|
||||
return sipGetState(sipTransferObj);
|
||||
}
|
||||
|
||||
if (PySequence_Check(sipPy)) {
|
||||
PyObject* o1 = PySequence_ITEM(sipPy, 0);
|
||||
PyObject* o2 = PySequence_ITEM(sipPy, 1);
|
||||
*sipCppPtr = new wxPoint(PyInt_AsLong(o1), PyInt_AsLong(o2));
|
||||
Py_DECREF(o1);
|
||||
Py_DECREF(o2);
|
||||
return sipGetState(sipTransferObj);
|
||||
}
|
||||
|
||||
*sipCppPtr = reinterpret_cast<wxPoint*>(sipConvertToType(
|
||||
sipPy, sipType_wxPoint, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));
|
||||
return 0;
|
||||
#line 786 "sip_corewxPoint.cpp"
|
||||
}
|
||||
|
||||
|
||||
/* Define this type's Python slots. */
|
||||
static sipPySlotDef slots_wxPoint[] = {
|
||||
{(void *)slot_wxPoint___eq__, eq_slot},
|
||||
{(void *)slot_wxPoint___ne__, ne_slot},
|
||||
{(void *)slot_wxPoint___add__, add_slot},
|
||||
{(void *)slot_wxPoint___neg__, neg_slot},
|
||||
{(void *)slot_wxPoint___sub__, sub_slot},
|
||||
{(void *)slot_wxPoint___mul__, mul_slot},
|
||||
{(void *)slot_wxPoint___div__, div_slot},
|
||||
{(void *)slot_wxPoint___isub__, isub_slot},
|
||||
{(void *)slot_wxPoint___iadd__, iadd_slot},
|
||||
{0, (sipPySlotType)0}
|
||||
};
|
||||
|
||||
|
||||
static PyMethodDef methods_wxPoint[] = {
|
||||
{SIP_MLNAME_CAST(sipName_IsFullySpecified), meth_wxPoint_IsFullySpecified, METH_VARARGS, SIP_MLDOC_CAST(doc_wxPoint_IsFullySpecified)},
|
||||
{SIP_MLNAME_CAST(sipName_SetDefaults), (PyCFunction)meth_wxPoint_SetDefaults, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPoint_SetDefaults)}
|
||||
};
|
||||
|
||||
|
||||
extern "C" {static PyObject *varget_wxPoint_x(void *, PyObject *);}
|
||||
static PyObject *varget_wxPoint_x(void *sipSelf, PyObject *)
|
||||
{
|
||||
int sipVal;
|
||||
wxPoint *sipCpp = reinterpret_cast<wxPoint *>(sipSelf);
|
||||
|
||||
sipVal = sipCpp->x;
|
||||
|
||||
return SIPLong_FromLong(sipVal);
|
||||
}
|
||||
|
||||
|
||||
extern "C" {static int varset_wxPoint_x(void *, PyObject *, PyObject *);}
|
||||
static int varset_wxPoint_x(void *sipSelf, PyObject *sipPy, PyObject *)
|
||||
{
|
||||
int sipVal;
|
||||
wxPoint *sipCpp = reinterpret_cast<wxPoint *>(sipSelf);
|
||||
|
||||
sipVal = (int)SIPLong_AsLong(sipPy);
|
||||
|
||||
if (PyErr_Occurred() != NULL)
|
||||
return -1;
|
||||
|
||||
sipCpp->x = sipVal;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
extern "C" {static PyObject *varget_wxPoint_y(void *, PyObject *);}
|
||||
static PyObject *varget_wxPoint_y(void *sipSelf, PyObject *)
|
||||
{
|
||||
int sipVal;
|
||||
wxPoint *sipCpp = reinterpret_cast<wxPoint *>(sipSelf);
|
||||
|
||||
sipVal = sipCpp->y;
|
||||
|
||||
return SIPLong_FromLong(sipVal);
|
||||
}
|
||||
|
||||
|
||||
extern "C" {static int varset_wxPoint_y(void *, PyObject *, PyObject *);}
|
||||
static int varset_wxPoint_y(void *sipSelf, PyObject *sipPy, PyObject *)
|
||||
{
|
||||
int sipVal;
|
||||
wxPoint *sipCpp = reinterpret_cast<wxPoint *>(sipSelf);
|
||||
|
||||
sipVal = (int)SIPLong_AsLong(sipPy);
|
||||
|
||||
if (PyErr_Occurred() != NULL)
|
||||
return -1;
|
||||
|
||||
sipCpp->y = sipVal;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
sipVariableDef variables_wxPoint[] = {
|
||||
{InstanceVariable, sipName_x, (PyMethodDef *)varget_wxPoint_x, (PyMethodDef *)varset_wxPoint_x, NULL, NULL},
|
||||
{InstanceVariable, sipName_y, (PyMethodDef *)varget_wxPoint_y, (PyMethodDef *)varset_wxPoint_y, NULL, NULL},
|
||||
};
|
||||
|
||||
PyDoc_STRVAR(doc_wxPoint, "\1Point()\n"
|
||||
"Point(int, int)\n"
|
||||
"Point(RealPoint)\n"
|
||||
"Point(Point)");
|
||||
|
||||
|
||||
sipClassTypeDef sipTypeDef__core_wxPoint = {
|
||||
{
|
||||
-1,
|
||||
0,
|
||||
0,
|
||||
SIP_TYPE_CLASS,
|
||||
sipNameNr_wxPoint,
|
||||
{0}
|
||||
},
|
||||
{
|
||||
sipNameNr_Point,
|
||||
{0, 0, 1},
|
||||
2, methods_wxPoint,
|
||||
0, 0,
|
||||
2, variables_wxPoint,
|
||||
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
|
||||
},
|
||||
doc_wxPoint,
|
||||
-1,
|
||||
-1,
|
||||
0,
|
||||
slots_wxPoint,
|
||||
init_wxPoint,
|
||||
0,
|
||||
0,
|
||||
#if PY_MAJOR_VERSION >= 3
|
||||
0,
|
||||
0,
|
||||
#else
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
#endif
|
||||
dealloc_wxPoint,
|
||||
assign_wxPoint,
|
||||
array_wxPoint,
|
||||
copy_wxPoint,
|
||||
release_wxPoint,
|
||||
cast_wxPoint,
|
||||
convertTo_wxPoint,
|
||||
0,
|
||||
0
|
||||
};
|
||||
1247
sip/cpp/sip_corewxPoint2DDouble.cpp
Normal file
1247
sip/cpp/sip_corewxPoint2DDouble.cpp
Normal file
File diff suppressed because it is too large
Load Diff
677
sip/cpp/sip_corewxRealPoint.cpp
Normal file
677
sip/cpp/sip_corewxRealPoint.cpp
Normal file
@@ -0,0 +1,677 @@
|
||||
/*
|
||||
* Interface wrapper code.
|
||||
*
|
||||
* Generated by SIP 4.12-snapshot-eac351f5cca7 on Wed Nov 10 15:32:07 2010
|
||||
*
|
||||
* Copyright: (c) 2010 by Total Control Software
|
||||
* Licence: wxWindows license
|
||||
*/
|
||||
|
||||
#include "sipAPI_core.h"
|
||||
|
||||
#line 404 "sip/gen/gdicmn.sip"
|
||||
#include <wx/gdicmn.h>
|
||||
#line 15 "sip_corewxRealPoint.cpp"
|
||||
|
||||
#line 22 "sip/gen/gdicmn.sip"
|
||||
#include <wx/gdicmn.h>
|
||||
#line 19 "sip_corewxRealPoint.cpp"
|
||||
#line 119 "sip/gen/gdicmn.sip"
|
||||
#include <wx/gdicmn.h>
|
||||
#line 22 "sip_corewxRealPoint.cpp"
|
||||
|
||||
|
||||
extern "C" {static PyObject *slot_wxRealPoint___eq__(PyObject *,PyObject *);}
|
||||
static PyObject *slot_wxRealPoint___eq__(PyObject *sipSelf,PyObject *sipArg)
|
||||
{
|
||||
wxRealPoint *sipCpp = reinterpret_cast<wxRealPoint *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_wxRealPoint));
|
||||
|
||||
if (!sipCpp)
|
||||
return 0;
|
||||
|
||||
PyObject *sipParseErr = NULL;
|
||||
|
||||
{
|
||||
const wxRealPoint * p2;
|
||||
|
||||
if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_wxRealPoint, &p2))
|
||||
{
|
||||
bool sipRes;
|
||||
|
||||
try
|
||||
{
|
||||
sipRes = operator==((*sipCpp), *p2);
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
sipRaiseUnknownException();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return PyBool_FromLong(sipRes);
|
||||
}
|
||||
}
|
||||
|
||||
Py_XDECREF(sipParseErr);
|
||||
|
||||
if (sipParseErr == Py_None)
|
||||
return NULL;
|
||||
|
||||
return sipPySlotExtend(&sipModuleAPI__core,eq_slot,sipType_wxRealPoint,sipSelf,sipArg);
|
||||
}
|
||||
|
||||
|
||||
extern "C" {static PyObject *slot_wxRealPoint___ne__(PyObject *,PyObject *);}
|
||||
static PyObject *slot_wxRealPoint___ne__(PyObject *sipSelf,PyObject *sipArg)
|
||||
{
|
||||
wxRealPoint *sipCpp = reinterpret_cast<wxRealPoint *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_wxRealPoint));
|
||||
|
||||
if (!sipCpp)
|
||||
return 0;
|
||||
|
||||
PyObject *sipParseErr = NULL;
|
||||
|
||||
{
|
||||
const wxRealPoint * p2;
|
||||
|
||||
if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_wxRealPoint, &p2))
|
||||
{
|
||||
bool sipRes;
|
||||
|
||||
try
|
||||
{
|
||||
sipRes = operator!=((*sipCpp), *p2);
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
sipRaiseUnknownException();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return PyBool_FromLong(sipRes);
|
||||
}
|
||||
}
|
||||
|
||||
Py_XDECREF(sipParseErr);
|
||||
|
||||
if (sipParseErr == Py_None)
|
||||
return NULL;
|
||||
|
||||
return sipPySlotExtend(&sipModuleAPI__core,ne_slot,sipType_wxRealPoint,sipSelf,sipArg);
|
||||
}
|
||||
|
||||
|
||||
extern "C" {static PyObject *slot_wxRealPoint___add__(PyObject *,PyObject *);}
|
||||
static PyObject *slot_wxRealPoint___add__(PyObject *sipArg0,PyObject *sipArg1)
|
||||
{
|
||||
PyObject *sipParseErr = NULL;
|
||||
|
||||
{
|
||||
const wxRealPoint * p1;
|
||||
const wxRealPoint * p2;
|
||||
|
||||
if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_wxRealPoint, &p1, sipType_wxRealPoint, &p2))
|
||||
{
|
||||
wxRealPoint *sipRes;
|
||||
|
||||
try
|
||||
{
|
||||
sipRes = new wxRealPoint((*p1 + *p2));
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
sipRaiseUnknownException();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return sipConvertFromNewType(sipRes,sipType_wxRealPoint,NULL);
|
||||
}
|
||||
}
|
||||
|
||||
Py_XDECREF(sipParseErr);
|
||||
|
||||
if (sipParseErr == Py_None)
|
||||
return NULL;
|
||||
|
||||
return sipPySlotExtend(&sipModuleAPI__core,add_slot,NULL,sipArg0,sipArg1);
|
||||
}
|
||||
|
||||
|
||||
extern "C" {static PyObject *slot_wxRealPoint___sub__(PyObject *,PyObject *);}
|
||||
static PyObject *slot_wxRealPoint___sub__(PyObject *sipArg0,PyObject *sipArg1)
|
||||
{
|
||||
PyObject *sipParseErr = NULL;
|
||||
|
||||
{
|
||||
const wxRealPoint * p1;
|
||||
const wxRealPoint * p2;
|
||||
|
||||
if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_wxRealPoint, &p1, sipType_wxRealPoint, &p2))
|
||||
{
|
||||
wxRealPoint *sipRes;
|
||||
|
||||
try
|
||||
{
|
||||
sipRes = new wxRealPoint((*p1 - *p2));
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
sipRaiseUnknownException();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return sipConvertFromNewType(sipRes,sipType_wxRealPoint,NULL);
|
||||
}
|
||||
}
|
||||
|
||||
Py_XDECREF(sipParseErr);
|
||||
|
||||
if (sipParseErr == Py_None)
|
||||
return NULL;
|
||||
|
||||
return sipPySlotExtend(&sipModuleAPI__core,sub_slot,NULL,sipArg0,sipArg1);
|
||||
}
|
||||
|
||||
|
||||
extern "C" {static PyObject *slot_wxRealPoint___mul__(PyObject *,PyObject *);}
|
||||
static PyObject *slot_wxRealPoint___mul__(PyObject *sipArg0,PyObject *sipArg1)
|
||||
{
|
||||
PyObject *sipParseErr = NULL;
|
||||
|
||||
{
|
||||
const wxRealPoint * s;
|
||||
double i;
|
||||
|
||||
if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9d", sipType_wxRealPoint, &s, &i))
|
||||
{
|
||||
wxRealPoint *sipRes;
|
||||
|
||||
try
|
||||
{
|
||||
sipRes = new wxRealPoint((*s * i));
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
sipRaiseUnknownException();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return sipConvertFromNewType(sipRes,sipType_wxRealPoint,NULL);
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
double i;
|
||||
const wxRealPoint * s;
|
||||
|
||||
if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "dJ9", &i, sipType_wxRealPoint, &s))
|
||||
{
|
||||
wxRealPoint *sipRes;
|
||||
|
||||
try
|
||||
{
|
||||
sipRes = new wxRealPoint((i * *s));
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
sipRaiseUnknownException();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return sipConvertFromNewType(sipRes,sipType_wxRealPoint,NULL);
|
||||
}
|
||||
}
|
||||
|
||||
Py_XDECREF(sipParseErr);
|
||||
|
||||
if (sipParseErr == Py_None)
|
||||
return NULL;
|
||||
|
||||
return sipPySlotExtend(&sipModuleAPI__core,mul_slot,NULL,sipArg0,sipArg1);
|
||||
}
|
||||
|
||||
|
||||
extern "C" {static PyObject *slot_wxRealPoint___div__(PyObject *,PyObject *);}
|
||||
static PyObject *slot_wxRealPoint___div__(PyObject *sipArg0,PyObject *sipArg1)
|
||||
{
|
||||
PyObject *sipParseErr = NULL;
|
||||
|
||||
{
|
||||
const wxRealPoint * s;
|
||||
int i;
|
||||
|
||||
if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9i", sipType_wxRealPoint, &s, &i))
|
||||
{
|
||||
wxRealPoint *sipRes;
|
||||
|
||||
try
|
||||
{
|
||||
sipRes = new wxRealPoint((*s / i));
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
sipRaiseUnknownException();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return sipConvertFromNewType(sipRes,sipType_wxRealPoint,NULL);
|
||||
}
|
||||
}
|
||||
|
||||
Py_XDECREF(sipParseErr);
|
||||
|
||||
if (sipParseErr == Py_None)
|
||||
return NULL;
|
||||
|
||||
return sipPySlotExtend(&sipModuleAPI__core,div_slot,NULL,sipArg0,sipArg1);
|
||||
}
|
||||
|
||||
|
||||
extern "C" {static PyObject *slot_wxRealPoint___isub__(PyObject *,PyObject *);}
|
||||
static PyObject *slot_wxRealPoint___isub__(PyObject *sipSelf,PyObject *sipArg)
|
||||
{
|
||||
if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_wxRealPoint)))
|
||||
{
|
||||
Py_INCREF(Py_NotImplemented);
|
||||
return Py_NotImplemented;
|
||||
}
|
||||
|
||||
wxRealPoint *sipCpp = reinterpret_cast<wxRealPoint *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_wxRealPoint));
|
||||
|
||||
if (!sipCpp)
|
||||
return 0;
|
||||
|
||||
PyObject *sipParseErr = NULL;
|
||||
|
||||
{
|
||||
const wxRealPoint * pt;
|
||||
|
||||
if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_wxRealPoint, &pt))
|
||||
{
|
||||
try
|
||||
{
|
||||
sipCpp->wxRealPoint::operator-=(*pt);
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
sipRaiseUnknownException();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Py_INCREF(sipSelf);
|
||||
return sipSelf;
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
const wxSize * sz;
|
||||
|
||||
if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_wxSize, &sz))
|
||||
{
|
||||
try
|
||||
{
|
||||
sipCpp->wxRealPoint::operator-=(*sz);
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
sipRaiseUnknownException();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Py_INCREF(sipSelf);
|
||||
return sipSelf;
|
||||
}
|
||||
}
|
||||
|
||||
Py_XDECREF(sipParseErr);
|
||||
|
||||
if (sipParseErr == Py_None)
|
||||
return NULL;
|
||||
|
||||
PyErr_Clear();
|
||||
|
||||
Py_INCREF(Py_NotImplemented);
|
||||
return Py_NotImplemented;
|
||||
}
|
||||
|
||||
|
||||
extern "C" {static PyObject *slot_wxRealPoint___iadd__(PyObject *,PyObject *);}
|
||||
static PyObject *slot_wxRealPoint___iadd__(PyObject *sipSelf,PyObject *sipArg)
|
||||
{
|
||||
if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_wxRealPoint)))
|
||||
{
|
||||
Py_INCREF(Py_NotImplemented);
|
||||
return Py_NotImplemented;
|
||||
}
|
||||
|
||||
wxRealPoint *sipCpp = reinterpret_cast<wxRealPoint *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_wxRealPoint));
|
||||
|
||||
if (!sipCpp)
|
||||
return 0;
|
||||
|
||||
PyObject *sipParseErr = NULL;
|
||||
|
||||
{
|
||||
const wxRealPoint * pt;
|
||||
|
||||
if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_wxRealPoint, &pt))
|
||||
{
|
||||
try
|
||||
{
|
||||
sipCpp->wxRealPoint::operator+=(*pt);
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
sipRaiseUnknownException();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Py_INCREF(sipSelf);
|
||||
return sipSelf;
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
const wxSize * sz;
|
||||
|
||||
if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_wxSize, &sz))
|
||||
{
|
||||
try
|
||||
{
|
||||
sipCpp->wxRealPoint::operator+=(*sz);
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
sipRaiseUnknownException();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Py_INCREF(sipSelf);
|
||||
return sipSelf;
|
||||
}
|
||||
}
|
||||
|
||||
Py_XDECREF(sipParseErr);
|
||||
|
||||
if (sipParseErr == Py_None)
|
||||
return NULL;
|
||||
|
||||
PyErr_Clear();
|
||||
|
||||
Py_INCREF(Py_NotImplemented);
|
||||
return Py_NotImplemented;
|
||||
}
|
||||
|
||||
|
||||
/* Cast a pointer to a type somewhere in its superclass hierarchy. */
|
||||
extern "C" {static void *cast_wxRealPoint(void *, const sipTypeDef *);}
|
||||
static void *cast_wxRealPoint(void *ptr, const sipTypeDef *targetType)
|
||||
{
|
||||
if (targetType == sipType_wxRealPoint)
|
||||
return ptr;
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
/* Call the instance's destructor. */
|
||||
extern "C" {static void release_wxRealPoint(void *, int);}
|
||||
static void release_wxRealPoint(void *sipCppV,int)
|
||||
{
|
||||
delete reinterpret_cast<wxRealPoint *>(sipCppV);
|
||||
}
|
||||
|
||||
|
||||
extern "C" {static void assign_wxRealPoint(void *, SIP_SSIZE_T, const void *);}
|
||||
static void assign_wxRealPoint(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
|
||||
{
|
||||
reinterpret_cast<wxRealPoint *>(sipDst)[sipDstIdx] = *reinterpret_cast<const wxRealPoint *>(sipSrc);
|
||||
}
|
||||
|
||||
|
||||
extern "C" {static void *array_wxRealPoint(SIP_SSIZE_T);}
|
||||
static void *array_wxRealPoint(SIP_SSIZE_T sipNrElem)
|
||||
{
|
||||
return new wxRealPoint[sipNrElem];
|
||||
}
|
||||
|
||||
|
||||
extern "C" {static void *copy_wxRealPoint(const void *, SIP_SSIZE_T);}
|
||||
static void *copy_wxRealPoint(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
|
||||
{
|
||||
return new wxRealPoint(reinterpret_cast<const wxRealPoint *>(sipSrc)[sipSrcIdx]);
|
||||
}
|
||||
|
||||
|
||||
extern "C" {static void dealloc_wxRealPoint(sipSimpleWrapper *);}
|
||||
static void dealloc_wxRealPoint(sipSimpleWrapper *sipSelf)
|
||||
{
|
||||
if (sipIsPyOwned(sipSelf))
|
||||
{
|
||||
release_wxRealPoint(sipGetAddress(sipSelf),0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
extern "C" {static void *init_wxRealPoint(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
|
||||
static void *init_wxRealPoint(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
|
||||
{
|
||||
wxRealPoint *sipCpp = 0;
|
||||
|
||||
{
|
||||
if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
|
||||
{
|
||||
try
|
||||
{
|
||||
sipCpp = new wxRealPoint();
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
sipRaiseUnknownException();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return sipCpp;
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
double x;
|
||||
double y;
|
||||
|
||||
static const char *sipKwdList[] = {
|
||||
sipName_x,
|
||||
sipName_y,
|
||||
};
|
||||
|
||||
if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "dd", &x, &y))
|
||||
{
|
||||
try
|
||||
{
|
||||
sipCpp = new wxRealPoint(x,y);
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
sipRaiseUnknownException();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return sipCpp;
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
const wxPoint * pt;
|
||||
int ptState = 0;
|
||||
|
||||
static const char *sipKwdList[] = {
|
||||
sipName_pt,
|
||||
};
|
||||
|
||||
if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J1", sipType_wxPoint, &pt, &ptState))
|
||||
{
|
||||
try
|
||||
{
|
||||
sipCpp = new wxRealPoint(*pt);
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
sipReleaseType(const_cast<wxPoint *>(pt),sipType_wxPoint,ptState);
|
||||
sipRaiseUnknownException();
|
||||
return NULL;
|
||||
}
|
||||
sipReleaseType(const_cast<wxPoint *>(pt),sipType_wxPoint,ptState);
|
||||
|
||||
return sipCpp;
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
const wxRealPoint * a0;
|
||||
|
||||
if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_wxRealPoint, &a0))
|
||||
{
|
||||
try
|
||||
{
|
||||
sipCpp = new wxRealPoint(*a0);
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
sipRaiseUnknownException();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return sipCpp;
|
||||
}
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
/* Define this type's Python slots. */
|
||||
static sipPySlotDef slots_wxRealPoint[] = {
|
||||
{(void *)slot_wxRealPoint___eq__, eq_slot},
|
||||
{(void *)slot_wxRealPoint___ne__, ne_slot},
|
||||
{(void *)slot_wxRealPoint___add__, add_slot},
|
||||
{(void *)slot_wxRealPoint___sub__, sub_slot},
|
||||
{(void *)slot_wxRealPoint___mul__, mul_slot},
|
||||
{(void *)slot_wxRealPoint___div__, div_slot},
|
||||
{(void *)slot_wxRealPoint___isub__, isub_slot},
|
||||
{(void *)slot_wxRealPoint___iadd__, iadd_slot},
|
||||
{0, (sipPySlotType)0}
|
||||
};
|
||||
|
||||
|
||||
extern "C" {static PyObject *varget_wxRealPoint_x(void *, PyObject *);}
|
||||
static PyObject *varget_wxRealPoint_x(void *sipSelf, PyObject *)
|
||||
{
|
||||
double sipVal;
|
||||
wxRealPoint *sipCpp = reinterpret_cast<wxRealPoint *>(sipSelf);
|
||||
|
||||
sipVal = sipCpp->x;
|
||||
|
||||
return PyFloat_FromDouble(sipVal);
|
||||
}
|
||||
|
||||
|
||||
extern "C" {static int varset_wxRealPoint_x(void *, PyObject *, PyObject *);}
|
||||
static int varset_wxRealPoint_x(void *sipSelf, PyObject *sipPy, PyObject *)
|
||||
{
|
||||
double sipVal;
|
||||
wxRealPoint *sipCpp = reinterpret_cast<wxRealPoint *>(sipSelf);
|
||||
|
||||
sipVal = PyFloat_AsDouble(sipPy);
|
||||
|
||||
if (PyErr_Occurred() != NULL)
|
||||
return -1;
|
||||
|
||||
sipCpp->x = sipVal;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
extern "C" {static PyObject *varget_wxRealPoint_y(void *, PyObject *);}
|
||||
static PyObject *varget_wxRealPoint_y(void *sipSelf, PyObject *)
|
||||
{
|
||||
double sipVal;
|
||||
wxRealPoint *sipCpp = reinterpret_cast<wxRealPoint *>(sipSelf);
|
||||
|
||||
sipVal = sipCpp->y;
|
||||
|
||||
return PyFloat_FromDouble(sipVal);
|
||||
}
|
||||
|
||||
|
||||
extern "C" {static int varset_wxRealPoint_y(void *, PyObject *, PyObject *);}
|
||||
static int varset_wxRealPoint_y(void *sipSelf, PyObject *sipPy, PyObject *)
|
||||
{
|
||||
double sipVal;
|
||||
wxRealPoint *sipCpp = reinterpret_cast<wxRealPoint *>(sipSelf);
|
||||
|
||||
sipVal = PyFloat_AsDouble(sipPy);
|
||||
|
||||
if (PyErr_Occurred() != NULL)
|
||||
return -1;
|
||||
|
||||
sipCpp->y = sipVal;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
sipVariableDef variables_wxRealPoint[] = {
|
||||
{InstanceVariable, sipName_x, (PyMethodDef *)varget_wxRealPoint_x, (PyMethodDef *)varset_wxRealPoint_x, NULL, NULL},
|
||||
{InstanceVariable, sipName_y, (PyMethodDef *)varget_wxRealPoint_y, (PyMethodDef *)varset_wxRealPoint_y, NULL, NULL},
|
||||
};
|
||||
|
||||
PyDoc_STRVAR(doc_wxRealPoint, "\1RealPoint()\n"
|
||||
"RealPoint(float, float)\n"
|
||||
"RealPoint(Point)\n"
|
||||
"RealPoint(RealPoint)");
|
||||
|
||||
|
||||
sipClassTypeDef sipTypeDef__core_wxRealPoint = {
|
||||
{
|
||||
-1,
|
||||
0,
|
||||
0,
|
||||
SIP_TYPE_CLASS,
|
||||
sipNameNr_wxRealPoint,
|
||||
{0}
|
||||
},
|
||||
{
|
||||
sipNameNr_RealPoint,
|
||||
{0, 0, 1},
|
||||
0, 0,
|
||||
0, 0,
|
||||
2, variables_wxRealPoint,
|
||||
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
|
||||
},
|
||||
doc_wxRealPoint,
|
||||
-1,
|
||||
-1,
|
||||
0,
|
||||
slots_wxRealPoint,
|
||||
init_wxRealPoint,
|
||||
0,
|
||||
0,
|
||||
#if PY_MAJOR_VERSION >= 3
|
||||
0,
|
||||
0,
|
||||
#else
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
#endif
|
||||
dealloc_wxRealPoint,
|
||||
assign_wxRealPoint,
|
||||
array_wxRealPoint,
|
||||
copy_wxRealPoint,
|
||||
release_wxRealPoint,
|
||||
cast_wxRealPoint,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
};
|
||||
1981
sip/cpp/sip_corewxRect.cpp
Normal file
1981
sip/cpp/sip_corewxRect.cpp
Normal file
File diff suppressed because it is too large
Load Diff
2305
sip/cpp/sip_corewxRect2DDouble.cpp
Normal file
2305
sip/cpp/sip_corewxRect2DDouble.cpp
Normal file
File diff suppressed because it is too large
Load Diff
285
sip/cpp/sip_corewxRefCounter.cpp
Normal file
285
sip/cpp/sip_corewxRefCounter.cpp
Normal file
@@ -0,0 +1,285 @@
|
||||
/*
|
||||
* Interface wrapper code.
|
||||
*
|
||||
* Generated by SIP 4.12-snapshot-eac351f5cca7 on Wed Nov 10 15:32:07 2010
|
||||
*
|
||||
* Copyright: (c) 2010 by Total Control Software
|
||||
* Licence: wxWindows license
|
||||
*/
|
||||
|
||||
#include "sipAPI_core.h"
|
||||
|
||||
#line 17 "sip/gen/object.sip"
|
||||
#include <wx/object.h>
|
||||
#line 15 "sip_corewxRefCounter.cpp"
|
||||
|
||||
|
||||
|
||||
class sipwxRefCounter : public wxRefCounter
|
||||
{
|
||||
public:
|
||||
sipwxRefCounter();
|
||||
sipwxRefCounter(const wxRefCounter&);
|
||||
~sipwxRefCounter();
|
||||
|
||||
public:
|
||||
sipSimpleWrapper *sipPySelf;
|
||||
|
||||
private:
|
||||
sipwxRefCounter(const sipwxRefCounter &);
|
||||
sipwxRefCounter &operator = (const sipwxRefCounter &);
|
||||
};
|
||||
|
||||
sipwxRefCounter::sipwxRefCounter(): wxRefCounter(), sipPySelf(0)
|
||||
{
|
||||
}
|
||||
|
||||
sipwxRefCounter::sipwxRefCounter(const wxRefCounter& a0): wxRefCounter(a0), sipPySelf(0)
|
||||
{
|
||||
}
|
||||
|
||||
sipwxRefCounter::~sipwxRefCounter()
|
||||
{
|
||||
sipCommonDtor(sipPySelf);
|
||||
}
|
||||
|
||||
|
||||
PyDoc_STRVAR(doc_wxRefCounter_DecRef, "RefCounter.DecRef()");
|
||||
|
||||
extern "C" {static PyObject *meth_wxRefCounter_DecRef(PyObject *, PyObject *);}
|
||||
static PyObject *meth_wxRefCounter_DecRef(PyObject *sipSelf, PyObject *sipArgs)
|
||||
{
|
||||
PyObject *sipParseErr = NULL;
|
||||
|
||||
{
|
||||
wxRefCounter *sipCpp;
|
||||
|
||||
if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRefCounter, &sipCpp))
|
||||
{
|
||||
try
|
||||
{
|
||||
sipCpp->DecRef();
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
sipRaiseUnknownException();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
}
|
||||
|
||||
/* Raise an exception if the arguments couldn't be parsed. */
|
||||
sipNoMethod(sipParseErr, sipName_RefCounter, sipName_DecRef, doc_wxRefCounter_DecRef);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
PyDoc_STRVAR(doc_wxRefCounter_GetRefCount, "RefCounter.GetRefCount() -> int");
|
||||
|
||||
extern "C" {static PyObject *meth_wxRefCounter_GetRefCount(PyObject *, PyObject *);}
|
||||
static PyObject *meth_wxRefCounter_GetRefCount(PyObject *sipSelf, PyObject *sipArgs)
|
||||
{
|
||||
PyObject *sipParseErr = NULL;
|
||||
|
||||
{
|
||||
wxRefCounter *sipCpp;
|
||||
|
||||
if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRefCounter, &sipCpp))
|
||||
{
|
||||
int sipRes;
|
||||
|
||||
try
|
||||
{
|
||||
sipRes = sipCpp->GetRefCount();
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
sipRaiseUnknownException();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return SIPLong_FromLong(sipRes);
|
||||
}
|
||||
}
|
||||
|
||||
/* Raise an exception if the arguments couldn't be parsed. */
|
||||
sipNoMethod(sipParseErr, sipName_RefCounter, sipName_GetRefCount, doc_wxRefCounter_GetRefCount);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
PyDoc_STRVAR(doc_wxRefCounter_IncRef, "RefCounter.IncRef()");
|
||||
|
||||
extern "C" {static PyObject *meth_wxRefCounter_IncRef(PyObject *, PyObject *);}
|
||||
static PyObject *meth_wxRefCounter_IncRef(PyObject *sipSelf, PyObject *sipArgs)
|
||||
{
|
||||
PyObject *sipParseErr = NULL;
|
||||
|
||||
{
|
||||
wxRefCounter *sipCpp;
|
||||
|
||||
if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRefCounter, &sipCpp))
|
||||
{
|
||||
try
|
||||
{
|
||||
sipCpp->IncRef();
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
sipRaiseUnknownException();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
}
|
||||
|
||||
/* Raise an exception if the arguments couldn't be parsed. */
|
||||
sipNoMethod(sipParseErr, sipName_RefCounter, sipName_IncRef, doc_wxRefCounter_IncRef);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
/* Cast a pointer to a type somewhere in its superclass hierarchy. */
|
||||
extern "C" {static void *cast_wxRefCounter(void *, const sipTypeDef *);}
|
||||
static void *cast_wxRefCounter(void *ptr, const sipTypeDef *targetType)
|
||||
{
|
||||
if (targetType == sipType_wxRefCounter)
|
||||
return ptr;
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
/* Call the instance's destructor. */
|
||||
extern "C" {static void release_wxRefCounter(void *, int);}
|
||||
static void release_wxRefCounter(void *sipCppV,int sipState)
|
||||
{
|
||||
if (sipState & SIP_DERIVED_CLASS)
|
||||
delete reinterpret_cast<sipwxRefCounter *>(sipCppV);
|
||||
}
|
||||
|
||||
|
||||
extern "C" {static void dealloc_wxRefCounter(sipSimpleWrapper *);}
|
||||
static void dealloc_wxRefCounter(sipSimpleWrapper *sipSelf)
|
||||
{
|
||||
if (sipIsDerived(sipSelf))
|
||||
reinterpret_cast<sipwxRefCounter *>(sipGetAddress(sipSelf))->sipPySelf = NULL;
|
||||
|
||||
if (sipIsPyOwned(sipSelf))
|
||||
{
|
||||
release_wxRefCounter(sipGetAddress(sipSelf),sipSelf->flags);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
extern "C" {static void *init_wxRefCounter(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
|
||||
static void *init_wxRefCounter(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
|
||||
{
|
||||
sipwxRefCounter *sipCpp = 0;
|
||||
|
||||
{
|
||||
if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
|
||||
{
|
||||
try
|
||||
{
|
||||
sipCpp = new sipwxRefCounter();
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
sipRaiseUnknownException();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
sipCpp->sipPySelf = sipSelf;
|
||||
|
||||
return sipCpp;
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
const wxRefCounter * a0;
|
||||
|
||||
if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_wxRefCounter, &a0))
|
||||
{
|
||||
try
|
||||
{
|
||||
sipCpp = new sipwxRefCounter(*a0);
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
sipRaiseUnknownException();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
sipCpp->sipPySelf = sipSelf;
|
||||
|
||||
return sipCpp;
|
||||
}
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static PyMethodDef methods_wxRefCounter[] = {
|
||||
{SIP_MLNAME_CAST(sipName_DecRef), meth_wxRefCounter_DecRef, METH_VARARGS, SIP_MLDOC_CAST(doc_wxRefCounter_DecRef)},
|
||||
{SIP_MLNAME_CAST(sipName_GetRefCount), meth_wxRefCounter_GetRefCount, METH_VARARGS, SIP_MLDOC_CAST(doc_wxRefCounter_GetRefCount)},
|
||||
{SIP_MLNAME_CAST(sipName_IncRef), meth_wxRefCounter_IncRef, METH_VARARGS, SIP_MLDOC_CAST(doc_wxRefCounter_IncRef)}
|
||||
};
|
||||
|
||||
PyDoc_STRVAR(doc_wxRefCounter, "\1RefCounter()\n"
|
||||
"RefCounter(RefCounter)");
|
||||
|
||||
|
||||
sipClassTypeDef sipTypeDef__core_wxRefCounter = {
|
||||
{
|
||||
-1,
|
||||
0,
|
||||
0,
|
||||
SIP_TYPE_CLASS,
|
||||
sipNameNr_wxRefCounter,
|
||||
{0}
|
||||
},
|
||||
{
|
||||
sipNameNr_RefCounter,
|
||||
{0, 0, 1},
|
||||
3, methods_wxRefCounter,
|
||||
0, 0,
|
||||
0, 0,
|
||||
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
|
||||
},
|
||||
doc_wxRefCounter,
|
||||
-1,
|
||||
-1,
|
||||
0,
|
||||
0,
|
||||
init_wxRefCounter,
|
||||
0,
|
||||
0,
|
||||
#if PY_MAJOR_VERSION >= 3
|
||||
0,
|
||||
0,
|
||||
#else
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
#endif
|
||||
dealloc_wxRefCounter,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
release_wxRefCounter,
|
||||
cast_wxRefCounter,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
};
|
||||
1340
sip/cpp/sip_corewxSize.cpp
Normal file
1340
sip/cpp/sip_corewxSize.cpp
Normal file
File diff suppressed because it is too large
Load Diff
88
sip/cpp/sip_corewxString.cpp
Normal file
88
sip/cpp/sip_corewxString.cpp
Normal file
@@ -0,0 +1,88 @@
|
||||
/*
|
||||
* Interface wrapper code.
|
||||
*
|
||||
* Generated by SIP 4.12-snapshot-eac351f5cca7 on Wed Nov 10 15:32:07 2010
|
||||
*
|
||||
* Copyright: (c) 2010 by Total Control Software
|
||||
* Licence: wxWindows license
|
||||
*/
|
||||
|
||||
#include "sipAPI_core.h"
|
||||
|
||||
|
||||
|
||||
|
||||
extern "C" {static void assign_wxString(void *, SIP_SSIZE_T, const void *);}
|
||||
static void assign_wxString(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
|
||||
{
|
||||
reinterpret_cast<wxString *>(sipDst)[sipDstIdx] = *reinterpret_cast<const wxString *>(sipSrc);
|
||||
}
|
||||
|
||||
|
||||
extern "C" {static void *array_wxString(SIP_SSIZE_T);}
|
||||
static void *array_wxString(SIP_SSIZE_T sipNrElem)
|
||||
{
|
||||
return new wxString[sipNrElem];
|
||||
}
|
||||
|
||||
|
||||
extern "C" {static void *copy_wxString(const void *, SIP_SSIZE_T);}
|
||||
static void *copy_wxString(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
|
||||
{
|
||||
return new wxString(reinterpret_cast<const wxString *>(sipSrc)[sipSrcIdx]);
|
||||
}
|
||||
|
||||
|
||||
/* Call the mapped type's destructor. */
|
||||
extern "C" {static void release_wxString(void *, int);}
|
||||
static void release_wxString(void *ptr, int)
|
||||
{
|
||||
delete reinterpret_cast<wxString *>(ptr);
|
||||
}
|
||||
|
||||
|
||||
|
||||
extern "C" {static int convertTo_wxString(PyObject *, void **, int *, PyObject *);}
|
||||
static int convertTo_wxString(PyObject *,void **,int *,PyObject *)
|
||||
{
|
||||
#line 23 "src/string.sip"
|
||||
// TODO
|
||||
#line 51 "sip_corewxString.cpp"
|
||||
}
|
||||
|
||||
|
||||
extern "C" {static PyObject *convertFrom_wxString(void *, PyObject *);}
|
||||
static PyObject *convertFrom_wxString(void *sipCppV,PyObject *)
|
||||
{
|
||||
wxString *sipCpp = reinterpret_cast<wxString *>(sipCppV);
|
||||
|
||||
#line 28 "src/string.sip"
|
||||
// TODO
|
||||
#line 62 "sip_corewxString.cpp"
|
||||
}
|
||||
|
||||
|
||||
sipMappedTypeDef sipTypeDef__core_wxString = {
|
||||
{
|
||||
-1,
|
||||
0,
|
||||
0,
|
||||
SIP_TYPE_MAPPED,
|
||||
sipNameNr_wxString,
|
||||
{0}
|
||||
},
|
||||
{
|
||||
-1,
|
||||
{0, 0, 1},
|
||||
0, 0,
|
||||
0, 0,
|
||||
0, 0,
|
||||
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
|
||||
},
|
||||
assign_wxString,
|
||||
array_wxString,
|
||||
copy_wxString,
|
||||
release_wxString,
|
||||
convertTo_wxString,
|
||||
convertFrom_wxString
|
||||
};
|
||||
639
sip/gen/_core.sip
Normal file
639
sip/gen/_core.sip
Normal file
@@ -0,0 +1,639 @@
|
||||
//---------------------------------------------------------------------------
|
||||
// This file is generated by wxPython's SIP generator. Do not edit by hand.
|
||||
//
|
||||
// Copyright: (c) 2010 by Total Control Software
|
||||
// Licence: wxWindows license
|
||||
|
||||
%Module wx._core
|
||||
%Copying
|
||||
Copyright: (c) 2010 by Total Control Software
|
||||
Licence: wxWindows license
|
||||
%End
|
||||
%RealArgNames
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
%Include string.sip
|
||||
%Include object.sip
|
||||
%Include gdicmn.sip
|
||||
%Include geometry.sip
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
typedef signed char wxInt8;
|
||||
|
||||
typedef unsigned char wxUint8;
|
||||
|
||||
typedef wxUint8 wxByte;
|
||||
|
||||
typedef short wxInt16;
|
||||
|
||||
typedef unsigned short wxUint16;
|
||||
|
||||
typedef wxUint16 wxWord;
|
||||
|
||||
typedef wxUint16 wxChar16;
|
||||
|
||||
typedef int wxInt32;
|
||||
|
||||
typedef unsigned int wxUint32;
|
||||
|
||||
typedef wxUint32 wxDword;
|
||||
|
||||
typedef wxUint32 wxChar32;
|
||||
|
||||
typedef long long wxInt64;
|
||||
|
||||
typedef unsigned long long wxUint64;
|
||||
|
||||
typedef long wxIntPtr;
|
||||
|
||||
typedef unsigned long wxUIntPtr;
|
||||
|
||||
typedef wchar_t wxChar;
|
||||
|
||||
typedef wchar_t wxUChar;
|
||||
|
||||
enum wxGeometryCentre /PyName=GeometryCentre/
|
||||
{
|
||||
wxCENTRE /PyName=CENTRE/,
|
||||
wxCENTER /PyName=CENTER/
|
||||
};
|
||||
|
||||
enum wxOrientation /PyName=Orientation/
|
||||
{
|
||||
wxHORIZONTAL /PyName=HORIZONTAL/,
|
||||
wxVERTICAL /PyName=VERTICAL/,
|
||||
wxBOTH /PyName=BOTH/,
|
||||
wxORIENTATION_MASK /PyName=ORIENTATION_MASK/
|
||||
};
|
||||
|
||||
enum wxDirection /PyName=Direction/
|
||||
{
|
||||
wxLEFT /PyName=LEFT/,
|
||||
wxRIGHT /PyName=RIGHT/,
|
||||
wxUP /PyName=UP/,
|
||||
wxDOWN /PyName=DOWN/,
|
||||
wxTOP /PyName=TOP/,
|
||||
wxBOTTOM /PyName=BOTTOM/,
|
||||
wxNORTH /PyName=NORTH/,
|
||||
wxSOUTH /PyName=SOUTH/,
|
||||
wxWEST /PyName=WEST/,
|
||||
wxEAST /PyName=EAST/,
|
||||
wxALL /PyName=ALL/,
|
||||
wxDIRECTION_MASK /PyName=DIRECTION_MASK/
|
||||
};
|
||||
|
||||
enum wxAlignment /PyName=Alignment/
|
||||
{
|
||||
wxALIGN_INVALID /PyName=ALIGN_INVALID/,
|
||||
wxALIGN_NOT /PyName=ALIGN_NOT/,
|
||||
wxALIGN_CENTER_HORIZONTAL /PyName=ALIGN_CENTER_HORIZONTAL/,
|
||||
wxALIGN_CENTRE_HORIZONTAL /PyName=ALIGN_CENTRE_HORIZONTAL/,
|
||||
wxALIGN_LEFT /PyName=ALIGN_LEFT/,
|
||||
wxALIGN_TOP /PyName=ALIGN_TOP/,
|
||||
wxALIGN_RIGHT /PyName=ALIGN_RIGHT/,
|
||||
wxALIGN_BOTTOM /PyName=ALIGN_BOTTOM/,
|
||||
wxALIGN_CENTER_VERTICAL /PyName=ALIGN_CENTER_VERTICAL/,
|
||||
wxALIGN_CENTRE_VERTICAL /PyName=ALIGN_CENTRE_VERTICAL/,
|
||||
wxALIGN_CENTER /PyName=ALIGN_CENTER/,
|
||||
wxALIGN_CENTRE /PyName=ALIGN_CENTRE/,
|
||||
wxALIGN_MASK /PyName=ALIGN_MASK/
|
||||
};
|
||||
|
||||
enum wxSizerFlagBits /PyName=SizerFlagBits/
|
||||
{
|
||||
wxFIXED_MINSIZE /PyName=FIXED_MINSIZE/,
|
||||
wxRESERVE_SPACE_EVEN_IF_HIDDEN /PyName=RESERVE_SPACE_EVEN_IF_HIDDEN/,
|
||||
wxSIZER_FLAG_BITS_MASK /PyName=SIZER_FLAG_BITS_MASK/
|
||||
};
|
||||
|
||||
enum wxStretch /PyName=Stretch/
|
||||
{
|
||||
wxSTRETCH_NOT /PyName=STRETCH_NOT/,
|
||||
wxSHRINK /PyName=SHRINK/,
|
||||
wxGROW /PyName=GROW/,
|
||||
wxEXPAND /PyName=EXPAND/,
|
||||
wxSHAPED /PyName=SHAPED/,
|
||||
wxTILE /PyName=TILE/,
|
||||
wxSTRETCH_MASK /PyName=STRETCH_MASK/
|
||||
};
|
||||
|
||||
enum wxBorder /PyName=Border/
|
||||
{
|
||||
wxBORDER_DEFAULT /PyName=BORDER_DEFAULT/,
|
||||
wxBORDER_NONE /PyName=BORDER_NONE/,
|
||||
wxBORDER_STATIC /PyName=BORDER_STATIC/,
|
||||
wxBORDER_SIMPLE /PyName=BORDER_SIMPLE/,
|
||||
wxBORDER_RAISED /PyName=BORDER_RAISED/,
|
||||
wxBORDER_SUNKEN /PyName=BORDER_SUNKEN/,
|
||||
wxBORDER_DOUBLE /PyName=BORDER_DOUBLE/,
|
||||
wxBORDER_THEME /PyName=BORDER_THEME/,
|
||||
wxBORDER_MASK /PyName=BORDER_MASK/
|
||||
};
|
||||
|
||||
enum wxBackgroundStyle /PyName=BackgroundStyle/
|
||||
{
|
||||
wxBG_STYLE_ERASE /PyName=BG_STYLE_ERASE/,
|
||||
wxBG_STYLE_SYSTEM /PyName=BG_STYLE_SYSTEM/,
|
||||
wxBG_STYLE_PAINT /PyName=BG_STYLE_PAINT/
|
||||
};
|
||||
|
||||
enum wxStandardID /PyName=StandardID/
|
||||
{
|
||||
wxID_AUTO_LOWEST /PyName=ID_AUTO_LOWEST/,
|
||||
wxID_AUTO_HIGHEST /PyName=ID_AUTO_HIGHEST/,
|
||||
wxID_NONE /PyName=ID_NONE/,
|
||||
wxID_SEPARATOR /PyName=ID_SEPARATOR/,
|
||||
wxID_ANY /PyName=ID_ANY/,
|
||||
wxID_LOWEST /PyName=ID_LOWEST/,
|
||||
wxID_OPEN /PyName=ID_OPEN/,
|
||||
wxID_CLOSE /PyName=ID_CLOSE/,
|
||||
wxID_NEW /PyName=ID_NEW/,
|
||||
wxID_SAVE /PyName=ID_SAVE/,
|
||||
wxID_SAVEAS /PyName=ID_SAVEAS/,
|
||||
wxID_REVERT /PyName=ID_REVERT/,
|
||||
wxID_EXIT /PyName=ID_EXIT/,
|
||||
wxID_UNDO /PyName=ID_UNDO/,
|
||||
wxID_REDO /PyName=ID_REDO/,
|
||||
wxID_HELP /PyName=ID_HELP/,
|
||||
wxID_PRINT /PyName=ID_PRINT/,
|
||||
wxID_PRINT_SETUP /PyName=ID_PRINT_SETUP/,
|
||||
wxID_PAGE_SETUP /PyName=ID_PAGE_SETUP/,
|
||||
wxID_PREVIEW /PyName=ID_PREVIEW/,
|
||||
wxID_ABOUT /PyName=ID_ABOUT/,
|
||||
wxID_HELP_CONTENTS /PyName=ID_HELP_CONTENTS/,
|
||||
wxID_HELP_INDEX /PyName=ID_HELP_INDEX/,
|
||||
wxID_HELP_SEARCH /PyName=ID_HELP_SEARCH/,
|
||||
wxID_HELP_COMMANDS /PyName=ID_HELP_COMMANDS/,
|
||||
wxID_HELP_PROCEDURES /PyName=ID_HELP_PROCEDURES/,
|
||||
wxID_HELP_CONTEXT /PyName=ID_HELP_CONTEXT/,
|
||||
wxID_CLOSE_ALL /PyName=ID_CLOSE_ALL/,
|
||||
wxID_PREFERENCES /PyName=ID_PREFERENCES/,
|
||||
wxID_EDIT /PyName=ID_EDIT/,
|
||||
wxID_CUT /PyName=ID_CUT/,
|
||||
wxID_COPY /PyName=ID_COPY/,
|
||||
wxID_PASTE /PyName=ID_PASTE/,
|
||||
wxID_CLEAR /PyName=ID_CLEAR/,
|
||||
wxID_FIND /PyName=ID_FIND/,
|
||||
wxID_DUPLICATE /PyName=ID_DUPLICATE/,
|
||||
wxID_SELECTALL /PyName=ID_SELECTALL/,
|
||||
wxID_DELETE /PyName=ID_DELETE/,
|
||||
wxID_REPLACE /PyName=ID_REPLACE/,
|
||||
wxID_REPLACE_ALL /PyName=ID_REPLACE_ALL/,
|
||||
wxID_PROPERTIES /PyName=ID_PROPERTIES/,
|
||||
wxID_VIEW_DETAILS /PyName=ID_VIEW_DETAILS/,
|
||||
wxID_VIEW_LARGEICONS /PyName=ID_VIEW_LARGEICONS/,
|
||||
wxID_VIEW_SMALLICONS /PyName=ID_VIEW_SMALLICONS/,
|
||||
wxID_VIEW_LIST /PyName=ID_VIEW_LIST/,
|
||||
wxID_VIEW_SORTDATE /PyName=ID_VIEW_SORTDATE/,
|
||||
wxID_VIEW_SORTNAME /PyName=ID_VIEW_SORTNAME/,
|
||||
wxID_VIEW_SORTSIZE /PyName=ID_VIEW_SORTSIZE/,
|
||||
wxID_VIEW_SORTTYPE /PyName=ID_VIEW_SORTTYPE/,
|
||||
wxID_FILE /PyName=ID_FILE/,
|
||||
wxID_FILE1 /PyName=ID_FILE1/,
|
||||
wxID_FILE2 /PyName=ID_FILE2/,
|
||||
wxID_FILE3 /PyName=ID_FILE3/,
|
||||
wxID_FILE4 /PyName=ID_FILE4/,
|
||||
wxID_FILE5 /PyName=ID_FILE5/,
|
||||
wxID_FILE6 /PyName=ID_FILE6/,
|
||||
wxID_FILE7 /PyName=ID_FILE7/,
|
||||
wxID_FILE8 /PyName=ID_FILE8/,
|
||||
wxID_FILE9 /PyName=ID_FILE9/,
|
||||
wxID_OK /PyName=ID_OK/,
|
||||
wxID_CANCEL /PyName=ID_CANCEL/,
|
||||
wxID_APPLY /PyName=ID_APPLY/,
|
||||
wxID_YES /PyName=ID_YES/,
|
||||
wxID_NO /PyName=ID_NO/,
|
||||
wxID_STATIC /PyName=ID_STATIC/,
|
||||
wxID_FORWARD /PyName=ID_FORWARD/,
|
||||
wxID_BACKWARD /PyName=ID_BACKWARD/,
|
||||
wxID_DEFAULT /PyName=ID_DEFAULT/,
|
||||
wxID_MORE /PyName=ID_MORE/,
|
||||
wxID_SETUP /PyName=ID_SETUP/,
|
||||
wxID_RESET /PyName=ID_RESET/,
|
||||
wxID_CONTEXT_HELP /PyName=ID_CONTEXT_HELP/,
|
||||
wxID_YESTOALL /PyName=ID_YESTOALL/,
|
||||
wxID_NOTOALL /PyName=ID_NOTOALL/,
|
||||
wxID_ABORT /PyName=ID_ABORT/,
|
||||
wxID_RETRY /PyName=ID_RETRY/,
|
||||
wxID_IGNORE /PyName=ID_IGNORE/,
|
||||
wxID_ADD /PyName=ID_ADD/,
|
||||
wxID_REMOVE /PyName=ID_REMOVE/,
|
||||
wxID_UP /PyName=ID_UP/,
|
||||
wxID_DOWN /PyName=ID_DOWN/,
|
||||
wxID_HOME /PyName=ID_HOME/,
|
||||
wxID_REFRESH /PyName=ID_REFRESH/,
|
||||
wxID_STOP /PyName=ID_STOP/,
|
||||
wxID_INDEX /PyName=ID_INDEX/,
|
||||
wxID_BOLD /PyName=ID_BOLD/,
|
||||
wxID_ITALIC /PyName=ID_ITALIC/,
|
||||
wxID_JUSTIFY_CENTER /PyName=ID_JUSTIFY_CENTER/,
|
||||
wxID_JUSTIFY_FILL /PyName=ID_JUSTIFY_FILL/,
|
||||
wxID_JUSTIFY_RIGHT /PyName=ID_JUSTIFY_RIGHT/,
|
||||
wxID_JUSTIFY_LEFT /PyName=ID_JUSTIFY_LEFT/,
|
||||
wxID_UNDERLINE /PyName=ID_UNDERLINE/,
|
||||
wxID_INDENT /PyName=ID_INDENT/,
|
||||
wxID_UNINDENT /PyName=ID_UNINDENT/,
|
||||
wxID_ZOOM_100 /PyName=ID_ZOOM_100/,
|
||||
wxID_ZOOM_FIT /PyName=ID_ZOOM_FIT/,
|
||||
wxID_ZOOM_IN /PyName=ID_ZOOM_IN/,
|
||||
wxID_ZOOM_OUT /PyName=ID_ZOOM_OUT/,
|
||||
wxID_UNDELETE /PyName=ID_UNDELETE/,
|
||||
wxID_REVERT_TO_SAVED /PyName=ID_REVERT_TO_SAVED/,
|
||||
wxID_CDROM /PyName=ID_CDROM/,
|
||||
wxID_CONVERT /PyName=ID_CONVERT/,
|
||||
wxID_EXECUTE /PyName=ID_EXECUTE/,
|
||||
wxID_FLOPPY /PyName=ID_FLOPPY/,
|
||||
wxID_HARDDISK /PyName=ID_HARDDISK/,
|
||||
wxID_BOTTOM /PyName=ID_BOTTOM/,
|
||||
wxID_FIRST /PyName=ID_FIRST/,
|
||||
wxID_LAST /PyName=ID_LAST/,
|
||||
wxID_TOP /PyName=ID_TOP/,
|
||||
wxID_INFO /PyName=ID_INFO/,
|
||||
wxID_JUMP_TO /PyName=ID_JUMP_TO/,
|
||||
wxID_NETWORK /PyName=ID_NETWORK/,
|
||||
wxID_SELECT_COLOR /PyName=ID_SELECT_COLOR/,
|
||||
wxID_SELECT_FONT /PyName=ID_SELECT_FONT/,
|
||||
wxID_SORT_ASCENDING /PyName=ID_SORT_ASCENDING/,
|
||||
wxID_SORT_DESCENDING /PyName=ID_SORT_DESCENDING/,
|
||||
wxID_SPELL_CHECK /PyName=ID_SPELL_CHECK/,
|
||||
wxID_STRIKETHROUGH /PyName=ID_STRIKETHROUGH/,
|
||||
wxID_SYSTEM_MENU /PyName=ID_SYSTEM_MENU/,
|
||||
wxID_CLOSE_FRAME /PyName=ID_CLOSE_FRAME/,
|
||||
wxID_MOVE_FRAME /PyName=ID_MOVE_FRAME/,
|
||||
wxID_RESIZE_FRAME /PyName=ID_RESIZE_FRAME/,
|
||||
wxID_MAXIMIZE_FRAME /PyName=ID_MAXIMIZE_FRAME/,
|
||||
wxID_ICONIZE_FRAME /PyName=ID_ICONIZE_FRAME/,
|
||||
wxID_RESTORE_FRAME /PyName=ID_RESTORE_FRAME/,
|
||||
wxID_MDI_WINDOW_FIRST /PyName=ID_MDI_WINDOW_FIRST/,
|
||||
wxID_MDI_WINDOW_CASCADE /PyName=ID_MDI_WINDOW_CASCADE/,
|
||||
wxID_MDI_WINDOW_TILE_HORZ /PyName=ID_MDI_WINDOW_TILE_HORZ/,
|
||||
wxID_MDI_WINDOW_TILE_VERT /PyName=ID_MDI_WINDOW_TILE_VERT/,
|
||||
wxID_MDI_WINDOW_ARRANGE_ICONS /PyName=ID_MDI_WINDOW_ARRANGE_ICONS/,
|
||||
wxID_MDI_WINDOW_PREV /PyName=ID_MDI_WINDOW_PREV/,
|
||||
wxID_MDI_WINDOW_NEXT /PyName=ID_MDI_WINDOW_NEXT/,
|
||||
wxID_MDI_WINDOW_LAST /PyName=ID_MDI_WINDOW_LAST/,
|
||||
wxID_FILEDLGG /PyName=ID_FILEDLGG/,
|
||||
wxID_FILECTRL /PyName=ID_FILECTRL/,
|
||||
wxID_HIGHEST /PyName=ID_HIGHEST/
|
||||
};
|
||||
|
||||
enum wxItemKind /PyName=ItemKind/
|
||||
{
|
||||
wxITEM_SEPARATOR /PyName=ITEM_SEPARATOR/,
|
||||
wxITEM_NORMAL /PyName=ITEM_NORMAL/,
|
||||
wxITEM_CHECK /PyName=ITEM_CHECK/,
|
||||
wxITEM_RADIO /PyName=ITEM_RADIO/,
|
||||
wxITEM_DROPDOWN /PyName=ITEM_DROPDOWN/,
|
||||
wxITEM_MAX /PyName=ITEM_MAX/
|
||||
};
|
||||
|
||||
enum wxHitTest /PyName=HitTest/
|
||||
{
|
||||
wxHT_NOWHERE /PyName=HT_NOWHERE/,
|
||||
wxHT_SCROLLBAR_FIRST /PyName=HT_SCROLLBAR_FIRST/,
|
||||
wxHT_SCROLLBAR_ARROW_LINE_1 /PyName=HT_SCROLLBAR_ARROW_LINE_1/,
|
||||
wxHT_SCROLLBAR_ARROW_LINE_2 /PyName=HT_SCROLLBAR_ARROW_LINE_2/,
|
||||
wxHT_SCROLLBAR_ARROW_PAGE_1 /PyName=HT_SCROLLBAR_ARROW_PAGE_1/,
|
||||
wxHT_SCROLLBAR_ARROW_PAGE_2 /PyName=HT_SCROLLBAR_ARROW_PAGE_2/,
|
||||
wxHT_SCROLLBAR_THUMB /PyName=HT_SCROLLBAR_THUMB/,
|
||||
wxHT_SCROLLBAR_BAR_1 /PyName=HT_SCROLLBAR_BAR_1/,
|
||||
wxHT_SCROLLBAR_BAR_2 /PyName=HT_SCROLLBAR_BAR_2/,
|
||||
wxHT_SCROLLBAR_LAST /PyName=HT_SCROLLBAR_LAST/,
|
||||
wxHT_WINDOW_OUTSIDE /PyName=HT_WINDOW_OUTSIDE/,
|
||||
wxHT_WINDOW_INSIDE /PyName=HT_WINDOW_INSIDE/,
|
||||
wxHT_WINDOW_VERT_SCROLLBAR /PyName=HT_WINDOW_VERT_SCROLLBAR/,
|
||||
wxHT_WINDOW_HORZ_SCROLLBAR /PyName=HT_WINDOW_HORZ_SCROLLBAR/,
|
||||
wxHT_WINDOW_CORNER /PyName=HT_WINDOW_CORNER/,
|
||||
wxHT_MAX /PyName=HT_MAX/
|
||||
};
|
||||
|
||||
enum wxDataFormatId /PyName=DataFormatId/
|
||||
{
|
||||
wxDF_INVALID /PyName=DF_INVALID/,
|
||||
wxDF_TEXT /PyName=DF_TEXT/,
|
||||
wxDF_BITMAP /PyName=DF_BITMAP/,
|
||||
wxDF_METAFILE /PyName=DF_METAFILE/,
|
||||
wxDF_SYLK /PyName=DF_SYLK/,
|
||||
wxDF_DIF /PyName=DF_DIF/,
|
||||
wxDF_TIFF /PyName=DF_TIFF/,
|
||||
wxDF_OEMTEXT /PyName=DF_OEMTEXT/,
|
||||
wxDF_DIB /PyName=DF_DIB/,
|
||||
wxDF_PALETTE /PyName=DF_PALETTE/,
|
||||
wxDF_PENDATA /PyName=DF_PENDATA/,
|
||||
wxDF_RIFF /PyName=DF_RIFF/,
|
||||
wxDF_WAVE /PyName=DF_WAVE/,
|
||||
wxDF_UNICODETEXT /PyName=DF_UNICODETEXT/,
|
||||
wxDF_ENHMETAFILE /PyName=DF_ENHMETAFILE/,
|
||||
wxDF_FILENAME /PyName=DF_FILENAME/,
|
||||
wxDF_LOCALE /PyName=DF_LOCALE/,
|
||||
wxDF_PRIVATE /PyName=DF_PRIVATE/,
|
||||
wxDF_HTML /PyName=DF_HTML/,
|
||||
wxDF_MAX /PyName=DF_MAX/
|
||||
};
|
||||
|
||||
enum wxKeyCode /PyName=KeyCode/
|
||||
{
|
||||
WXK_NONE,
|
||||
WXK_BACK,
|
||||
WXK_TAB,
|
||||
WXK_RETURN,
|
||||
WXK_ESCAPE,
|
||||
WXK_SPACE,
|
||||
WXK_DELETE,
|
||||
WXK_START,
|
||||
WXK_LBUTTON,
|
||||
WXK_RBUTTON,
|
||||
WXK_CANCEL,
|
||||
WXK_MBUTTON,
|
||||
WXK_CLEAR,
|
||||
WXK_SHIFT,
|
||||
WXK_ALT,
|
||||
WXK_CONTROL,
|
||||
WXK_MENU,
|
||||
WXK_PAUSE,
|
||||
WXK_CAPITAL,
|
||||
WXK_END,
|
||||
WXK_HOME,
|
||||
WXK_LEFT,
|
||||
WXK_UP,
|
||||
WXK_RIGHT,
|
||||
WXK_DOWN,
|
||||
WXK_SELECT,
|
||||
WXK_PRINT,
|
||||
WXK_EXECUTE,
|
||||
WXK_SNAPSHOT,
|
||||
WXK_INSERT,
|
||||
WXK_HELP,
|
||||
WXK_NUMPAD0,
|
||||
WXK_NUMPAD1,
|
||||
WXK_NUMPAD2,
|
||||
WXK_NUMPAD3,
|
||||
WXK_NUMPAD4,
|
||||
WXK_NUMPAD5,
|
||||
WXK_NUMPAD6,
|
||||
WXK_NUMPAD7,
|
||||
WXK_NUMPAD8,
|
||||
WXK_NUMPAD9,
|
||||
WXK_MULTIPLY,
|
||||
WXK_ADD,
|
||||
WXK_SEPARATOR,
|
||||
WXK_SUBTRACT,
|
||||
WXK_DECIMAL,
|
||||
WXK_DIVIDE,
|
||||
WXK_F1,
|
||||
WXK_F2,
|
||||
WXK_F3,
|
||||
WXK_F4,
|
||||
WXK_F5,
|
||||
WXK_F6,
|
||||
WXK_F7,
|
||||
WXK_F8,
|
||||
WXK_F9,
|
||||
WXK_F10,
|
||||
WXK_F11,
|
||||
WXK_F12,
|
||||
WXK_F13,
|
||||
WXK_F14,
|
||||
WXK_F15,
|
||||
WXK_F16,
|
||||
WXK_F17,
|
||||
WXK_F18,
|
||||
WXK_F19,
|
||||
WXK_F20,
|
||||
WXK_F21,
|
||||
WXK_F22,
|
||||
WXK_F23,
|
||||
WXK_F24,
|
||||
WXK_NUMLOCK,
|
||||
WXK_SCROLL,
|
||||
WXK_PAGEUP,
|
||||
WXK_PAGEDOWN,
|
||||
WXK_NUMPAD_SPACE,
|
||||
WXK_NUMPAD_TAB,
|
||||
WXK_NUMPAD_ENTER,
|
||||
WXK_NUMPAD_F1,
|
||||
WXK_NUMPAD_F2,
|
||||
WXK_NUMPAD_F3,
|
||||
WXK_NUMPAD_F4,
|
||||
WXK_NUMPAD_HOME,
|
||||
WXK_NUMPAD_LEFT,
|
||||
WXK_NUMPAD_UP,
|
||||
WXK_NUMPAD_RIGHT,
|
||||
WXK_NUMPAD_DOWN,
|
||||
WXK_NUMPAD_PAGEUP,
|
||||
WXK_NUMPAD_PAGEDOWN,
|
||||
WXK_NUMPAD_END,
|
||||
WXK_NUMPAD_BEGIN,
|
||||
WXK_NUMPAD_INSERT,
|
||||
WXK_NUMPAD_DELETE,
|
||||
WXK_NUMPAD_EQUAL,
|
||||
WXK_NUMPAD_MULTIPLY,
|
||||
WXK_NUMPAD_ADD,
|
||||
WXK_NUMPAD_SEPARATOR,
|
||||
WXK_NUMPAD_SUBTRACT,
|
||||
WXK_NUMPAD_DECIMAL,
|
||||
WXK_NUMPAD_DIVIDE,
|
||||
WXK_WINDOWS_LEFT,
|
||||
WXK_WINDOWS_RIGHT,
|
||||
WXK_WINDOWS_MENU,
|
||||
WXK_COMMAND,
|
||||
WXK_SPECIAL1,
|
||||
WXK_SPECIAL2,
|
||||
WXK_SPECIAL3,
|
||||
WXK_SPECIAL4,
|
||||
WXK_SPECIAL5,
|
||||
WXK_SPECIAL6,
|
||||
WXK_SPECIAL7,
|
||||
WXK_SPECIAL8,
|
||||
WXK_SPECIAL9,
|
||||
WXK_SPECIAL10,
|
||||
WXK_SPECIAL11,
|
||||
WXK_SPECIAL12,
|
||||
WXK_SPECIAL13,
|
||||
WXK_SPECIAL14,
|
||||
WXK_SPECIAL15,
|
||||
WXK_SPECIAL16,
|
||||
WXK_SPECIAL17,
|
||||
WXK_SPECIAL18,
|
||||
WXK_SPECIAL19,
|
||||
WXK_SPECIAL20
|
||||
};
|
||||
|
||||
enum wxKeyModifier /PyName=KeyModifier/
|
||||
{
|
||||
wxMOD_NONE /PyName=MOD_NONE/,
|
||||
wxMOD_ALT /PyName=MOD_ALT/,
|
||||
wxMOD_CONTROL /PyName=MOD_CONTROL/,
|
||||
wxMOD_ALTGR /PyName=MOD_ALTGR/,
|
||||
wxMOD_SHIFT /PyName=MOD_SHIFT/,
|
||||
wxMOD_META /PyName=MOD_META/,
|
||||
wxMOD_WIN /PyName=MOD_WIN/,
|
||||
wxMOD_CMD /PyName=MOD_CMD/,
|
||||
wxMOD_ALL /PyName=MOD_ALL/
|
||||
};
|
||||
|
||||
enum wxPaperSize /PyName=PaperSize/
|
||||
{
|
||||
wxPAPER_NONE /PyName=PAPER_NONE/,
|
||||
wxPAPER_LETTER /PyName=PAPER_LETTER/,
|
||||
wxPAPER_LEGAL /PyName=PAPER_LEGAL/,
|
||||
wxPAPER_A4 /PyName=PAPER_A4/,
|
||||
wxPAPER_CSHEET /PyName=PAPER_CSHEET/,
|
||||
wxPAPER_DSHEET /PyName=PAPER_DSHEET/,
|
||||
wxPAPER_ESHEET /PyName=PAPER_ESHEET/,
|
||||
wxPAPER_LETTERSMALL /PyName=PAPER_LETTERSMALL/,
|
||||
wxPAPER_TABLOID /PyName=PAPER_TABLOID/,
|
||||
wxPAPER_LEDGER /PyName=PAPER_LEDGER/,
|
||||
wxPAPER_STATEMENT /PyName=PAPER_STATEMENT/,
|
||||
wxPAPER_EXECUTIVE /PyName=PAPER_EXECUTIVE/,
|
||||
wxPAPER_A3 /PyName=PAPER_A3/,
|
||||
wxPAPER_A4SMALL /PyName=PAPER_A4SMALL/,
|
||||
wxPAPER_A5 /PyName=PAPER_A5/,
|
||||
wxPAPER_B4 /PyName=PAPER_B4/,
|
||||
wxPAPER_B5 /PyName=PAPER_B5/,
|
||||
wxPAPER_FOLIO /PyName=PAPER_FOLIO/,
|
||||
wxPAPER_QUARTO /PyName=PAPER_QUARTO/,
|
||||
wxPAPER_10X14 /PyName=PAPER_10X14/,
|
||||
wxPAPER_11X17 /PyName=PAPER_11X17/,
|
||||
wxPAPER_NOTE /PyName=PAPER_NOTE/,
|
||||
wxPAPER_ENV_9 /PyName=PAPER_ENV_9/,
|
||||
wxPAPER_ENV_10 /PyName=PAPER_ENV_10/,
|
||||
wxPAPER_ENV_11 /PyName=PAPER_ENV_11/,
|
||||
wxPAPER_ENV_12 /PyName=PAPER_ENV_12/,
|
||||
wxPAPER_ENV_14 /PyName=PAPER_ENV_14/,
|
||||
wxPAPER_ENV_DL /PyName=PAPER_ENV_DL/,
|
||||
wxPAPER_ENV_C5 /PyName=PAPER_ENV_C5/,
|
||||
wxPAPER_ENV_C3 /PyName=PAPER_ENV_C3/,
|
||||
wxPAPER_ENV_C4 /PyName=PAPER_ENV_C4/,
|
||||
wxPAPER_ENV_C6 /PyName=PAPER_ENV_C6/,
|
||||
wxPAPER_ENV_C65 /PyName=PAPER_ENV_C65/,
|
||||
wxPAPER_ENV_B4 /PyName=PAPER_ENV_B4/,
|
||||
wxPAPER_ENV_B5 /PyName=PAPER_ENV_B5/,
|
||||
wxPAPER_ENV_B6 /PyName=PAPER_ENV_B6/,
|
||||
wxPAPER_ENV_ITALY /PyName=PAPER_ENV_ITALY/,
|
||||
wxPAPER_ENV_MONARCH /PyName=PAPER_ENV_MONARCH/,
|
||||
wxPAPER_ENV_PERSONAL /PyName=PAPER_ENV_PERSONAL/,
|
||||
wxPAPER_FANFOLD_US /PyName=PAPER_FANFOLD_US/,
|
||||
wxPAPER_FANFOLD_STD_GERMAN /PyName=PAPER_FANFOLD_STD_GERMAN/,
|
||||
wxPAPER_FANFOLD_LGL_GERMAN /PyName=PAPER_FANFOLD_LGL_GERMAN/,
|
||||
wxPAPER_ISO_B4 /PyName=PAPER_ISO_B4/,
|
||||
wxPAPER_JAPANESE_POSTCARD /PyName=PAPER_JAPANESE_POSTCARD/,
|
||||
wxPAPER_9X11 /PyName=PAPER_9X11/,
|
||||
wxPAPER_10X11 /PyName=PAPER_10X11/,
|
||||
wxPAPER_15X11 /PyName=PAPER_15X11/,
|
||||
wxPAPER_ENV_INVITE /PyName=PAPER_ENV_INVITE/,
|
||||
wxPAPER_LETTER_EXTRA /PyName=PAPER_LETTER_EXTRA/,
|
||||
wxPAPER_LEGAL_EXTRA /PyName=PAPER_LEGAL_EXTRA/,
|
||||
wxPAPER_TABLOID_EXTRA /PyName=PAPER_TABLOID_EXTRA/,
|
||||
wxPAPER_A4_EXTRA /PyName=PAPER_A4_EXTRA/,
|
||||
wxPAPER_LETTER_TRANSVERSE /PyName=PAPER_LETTER_TRANSVERSE/,
|
||||
wxPAPER_A4_TRANSVERSE /PyName=PAPER_A4_TRANSVERSE/,
|
||||
wxPAPER_LETTER_EXTRA_TRANSVERSE /PyName=PAPER_LETTER_EXTRA_TRANSVERSE/,
|
||||
wxPAPER_A_PLUS /PyName=PAPER_A_PLUS/,
|
||||
wxPAPER_B_PLUS /PyName=PAPER_B_PLUS/,
|
||||
wxPAPER_LETTER_PLUS /PyName=PAPER_LETTER_PLUS/,
|
||||
wxPAPER_A4_PLUS /PyName=PAPER_A4_PLUS/,
|
||||
wxPAPER_A5_TRANSVERSE /PyName=PAPER_A5_TRANSVERSE/,
|
||||
wxPAPER_B5_TRANSVERSE /PyName=PAPER_B5_TRANSVERSE/,
|
||||
wxPAPER_A3_EXTRA /PyName=PAPER_A3_EXTRA/,
|
||||
wxPAPER_A5_EXTRA /PyName=PAPER_A5_EXTRA/,
|
||||
wxPAPER_B5_EXTRA /PyName=PAPER_B5_EXTRA/,
|
||||
wxPAPER_A2 /PyName=PAPER_A2/,
|
||||
wxPAPER_A3_TRANSVERSE /PyName=PAPER_A3_TRANSVERSE/,
|
||||
wxPAPER_A3_EXTRA_TRANSVERSE /PyName=PAPER_A3_EXTRA_TRANSVERSE/,
|
||||
wxPAPER_DBL_JAPANESE_POSTCARD /PyName=PAPER_DBL_JAPANESE_POSTCARD/,
|
||||
wxPAPER_A6 /PyName=PAPER_A6/,
|
||||
wxPAPER_JENV_KAKU2 /PyName=PAPER_JENV_KAKU2/,
|
||||
wxPAPER_JENV_KAKU3 /PyName=PAPER_JENV_KAKU3/,
|
||||
wxPAPER_JENV_CHOU3 /PyName=PAPER_JENV_CHOU3/,
|
||||
wxPAPER_JENV_CHOU4 /PyName=PAPER_JENV_CHOU4/,
|
||||
wxPAPER_LETTER_ROTATED /PyName=PAPER_LETTER_ROTATED/,
|
||||
wxPAPER_A3_ROTATED /PyName=PAPER_A3_ROTATED/,
|
||||
wxPAPER_A4_ROTATED /PyName=PAPER_A4_ROTATED/,
|
||||
wxPAPER_A5_ROTATED /PyName=PAPER_A5_ROTATED/,
|
||||
wxPAPER_B4_JIS_ROTATED /PyName=PAPER_B4_JIS_ROTATED/,
|
||||
wxPAPER_B5_JIS_ROTATED /PyName=PAPER_B5_JIS_ROTATED/,
|
||||
wxPAPER_JAPANESE_POSTCARD_ROTATED /PyName=PAPER_JAPANESE_POSTCARD_ROTATED/,
|
||||
wxPAPER_DBL_JAPANESE_POSTCARD_ROTATED /PyName=PAPER_DBL_JAPANESE_POSTCARD_ROTATED/,
|
||||
wxPAPER_A6_ROTATED /PyName=PAPER_A6_ROTATED/,
|
||||
wxPAPER_JENV_KAKU2_ROTATED /PyName=PAPER_JENV_KAKU2_ROTATED/,
|
||||
wxPAPER_JENV_KAKU3_ROTATED /PyName=PAPER_JENV_KAKU3_ROTATED/,
|
||||
wxPAPER_JENV_CHOU3_ROTATED /PyName=PAPER_JENV_CHOU3_ROTATED/,
|
||||
wxPAPER_JENV_CHOU4_ROTATED /PyName=PAPER_JENV_CHOU4_ROTATED/,
|
||||
wxPAPER_B6_JIS /PyName=PAPER_B6_JIS/,
|
||||
wxPAPER_B6_JIS_ROTATED /PyName=PAPER_B6_JIS_ROTATED/,
|
||||
wxPAPER_12X11 /PyName=PAPER_12X11/,
|
||||
wxPAPER_JENV_YOU4 /PyName=PAPER_JENV_YOU4/,
|
||||
wxPAPER_JENV_YOU4_ROTATED /PyName=PAPER_JENV_YOU4_ROTATED/,
|
||||
wxPAPER_P16K /PyName=PAPER_P16K/,
|
||||
wxPAPER_P32K /PyName=PAPER_P32K/,
|
||||
wxPAPER_P32KBIG /PyName=PAPER_P32KBIG/,
|
||||
wxPAPER_PENV_1 /PyName=PAPER_PENV_1/,
|
||||
wxPAPER_PENV_2 /PyName=PAPER_PENV_2/,
|
||||
wxPAPER_PENV_3 /PyName=PAPER_PENV_3/,
|
||||
wxPAPER_PENV_4 /PyName=PAPER_PENV_4/,
|
||||
wxPAPER_PENV_5 /PyName=PAPER_PENV_5/,
|
||||
wxPAPER_PENV_6 /PyName=PAPER_PENV_6/,
|
||||
wxPAPER_PENV_7 /PyName=PAPER_PENV_7/,
|
||||
wxPAPER_PENV_8 /PyName=PAPER_PENV_8/,
|
||||
wxPAPER_PENV_9 /PyName=PAPER_PENV_9/,
|
||||
wxPAPER_PENV_10 /PyName=PAPER_PENV_10/,
|
||||
wxPAPER_P16K_ROTATED /PyName=PAPER_P16K_ROTATED/,
|
||||
wxPAPER_P32K_ROTATED /PyName=PAPER_P32K_ROTATED/,
|
||||
wxPAPER_P32KBIG_ROTATED /PyName=PAPER_P32KBIG_ROTATED/,
|
||||
wxPAPER_PENV_1_ROTATED /PyName=PAPER_PENV_1_ROTATED/,
|
||||
wxPAPER_PENV_2_ROTATED /PyName=PAPER_PENV_2_ROTATED/,
|
||||
wxPAPER_PENV_3_ROTATED /PyName=PAPER_PENV_3_ROTATED/,
|
||||
wxPAPER_PENV_4_ROTATED /PyName=PAPER_PENV_4_ROTATED/,
|
||||
wxPAPER_PENV_5_ROTATED /PyName=PAPER_PENV_5_ROTATED/,
|
||||
wxPAPER_PENV_6_ROTATED /PyName=PAPER_PENV_6_ROTATED/,
|
||||
wxPAPER_PENV_7_ROTATED /PyName=PAPER_PENV_7_ROTATED/,
|
||||
wxPAPER_PENV_8_ROTATED /PyName=PAPER_PENV_8_ROTATED/,
|
||||
wxPAPER_PENV_9_ROTATED /PyName=PAPER_PENV_9_ROTATED/,
|
||||
wxPAPER_PENV_10_ROTATED /PyName=PAPER_PENV_10_ROTATED/
|
||||
};
|
||||
|
||||
enum wxPrintOrientation /PyName=PrintOrientation/
|
||||
{
|
||||
wxPORTRAIT /PyName=PORTRAIT/,
|
||||
wxLANDSCAPE /PyName=LANDSCAPE/
|
||||
};
|
||||
|
||||
enum wxDuplexMode /PyName=DuplexMode/
|
||||
{
|
||||
wxDUPLEX_SIMPLEX /PyName=DUPLEX_SIMPLEX/,
|
||||
wxDUPLEX_HORIZONTAL /PyName=DUPLEX_HORIZONTAL/,
|
||||
wxDUPLEX_VERTICAL /PyName=DUPLEX_VERTICAL/
|
||||
};
|
||||
|
||||
enum wxPrintMode /PyName=PrintMode/
|
||||
{
|
||||
wxPRINT_MODE_NONE /PyName=PRINT_MODE_NONE/,
|
||||
wxPRINT_MODE_PREVIEW /PyName=PRINT_MODE_PREVIEW/,
|
||||
wxPRINT_MODE_FILE /PyName=PRINT_MODE_FILE/,
|
||||
wxPRINT_MODE_PRINTER /PyName=PRINT_MODE_PRINTER/,
|
||||
wxPRINT_MODE_STREAM /PyName=PRINT_MODE_STREAM/
|
||||
};
|
||||
|
||||
enum wxUpdateUI /PyName=UpdateUI/
|
||||
{
|
||||
wxUPDATE_UI_NONE /PyName=UPDATE_UI_NONE/,
|
||||
wxUPDATE_UI_RECURSE /PyName=UPDATE_UI_RECURSE/,
|
||||
wxUPDATE_UI_FROMIDLE /PyName=UPDATE_UI_FROMIDLE/
|
||||
};
|
||||
|
||||
typedef int wxCoord;
|
||||
|
||||
typedef float wxFloat32;
|
||||
|
||||
typedef double wxFloat64;
|
||||
|
||||
typedef double wxDouble;
|
||||
|
||||
wxCoord wxDefaultCoord /PyName=DefaultCoord/;
|
||||
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
550
sip/gen/gdicmn.sip
Normal file
550
sip/gen/gdicmn.sip
Normal file
@@ -0,0 +1,550 @@
|
||||
//---------------------------------------------------------------------------
|
||||
// This file is generated by wxPython's SIP generator. Do not edit by hand.
|
||||
//
|
||||
// Copyright: (c) 2010 by Total Control Software
|
||||
// Licence: wxWindows license
|
||||
//
|
||||
// This file is included from _core.sip
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
|
||||
%ModuleHeaderCode
|
||||
#include <wx/wx.h>
|
||||
%End
|
||||
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
class wxPoint /PyName=Point/
|
||||
{
|
||||
%TypeHeaderCode
|
||||
#include <wx/gdicmn.h>
|
||||
%End
|
||||
|
||||
public:
|
||||
wxPoint();
|
||||
|
||||
wxPoint(
|
||||
int x,
|
||||
int y
|
||||
);
|
||||
|
||||
wxPoint(
|
||||
const wxRealPoint & pt
|
||||
);
|
||||
|
||||
wxPoint & operator+=(
|
||||
const wxPoint & pt
|
||||
);
|
||||
|
||||
wxPoint & operator+=(
|
||||
const wxSize & sz
|
||||
);
|
||||
|
||||
wxPoint & operator-=(
|
||||
const wxPoint & pt
|
||||
);
|
||||
|
||||
wxPoint & operator-=(
|
||||
const wxSize & sz
|
||||
);
|
||||
|
||||
bool IsFullySpecified();
|
||||
|
||||
void SetDefaults(
|
||||
const wxPoint & pt
|
||||
);
|
||||
|
||||
int x;
|
||||
int y;
|
||||
%ConvertToTypeCode
|
||||
// is it just a typecheck?
|
||||
if (!sipIsErr) {
|
||||
if (sipCanConvertToType(sipPy, sipType_wxPoint, SIP_NO_CONVERTORS))
|
||||
return 1;
|
||||
|
||||
if (PySequence_Check(sipPy) and PySequence_Size(sipPy) == 2) {
|
||||
int rval = 1;
|
||||
PyObject* o1 = PySequence_ITEM(sipPy, 0);
|
||||
PyObject* o2 = PySequence_ITEM(sipPy, 1);
|
||||
if (!PyNumber_Check(o1) || !PyNumber_Check(o2))
|
||||
rval = 0;
|
||||
Py_DECREF(o1);
|
||||
Py_DECREF(o2);
|
||||
return rval;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
// otherwise do the conversion
|
||||
if (sipPy == Py_None) {
|
||||
*sipCppPtr = new wxPoint(-1, -1);
|
||||
return sipGetState(sipTransferObj);
|
||||
}
|
||||
|
||||
if (PySequence_Check(sipPy)) {
|
||||
PyObject* o1 = PySequence_ITEM(sipPy, 0);
|
||||
PyObject* o2 = PySequence_ITEM(sipPy, 1);
|
||||
*sipCppPtr = new wxPoint(PyInt_AsLong(o1), PyInt_AsLong(o2));
|
||||
Py_DECREF(o1);
|
||||
Py_DECREF(o2);
|
||||
return sipGetState(sipTransferObj);
|
||||
}
|
||||
|
||||
*sipCppPtr = reinterpret_cast<wxPoint*>(sipConvertToType(
|
||||
sipPy, sipType_wxPoint, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));
|
||||
return 0;
|
||||
%End
|
||||
}; // end of class wxPoint
|
||||
|
||||
|
||||
bool operator==(const wxPoint& p1, const wxPoint& p2);
|
||||
bool operator!=(const wxPoint& p1, const wxPoint& p2);
|
||||
wxPoint operator+(const wxPoint& p, const wxSize& s);
|
||||
wxPoint operator+(const wxPoint& p1, const wxPoint& p2);
|
||||
wxPoint operator+(const wxSize& s, const wxPoint& p);
|
||||
wxPoint operator-(const wxPoint& p);
|
||||
wxPoint operator-(const wxPoint& p, const wxSize& s);
|
||||
wxPoint operator-(const wxPoint& p1, const wxPoint& p2);
|
||||
wxPoint operator-(const wxSize& s, const wxPoint& p);
|
||||
wxPoint operator*(const wxPoint& s, int i);
|
||||
wxPoint operator*(int i, const wxPoint& s);
|
||||
wxPoint operator/(const wxPoint& s, int i);
|
||||
|
||||
|
||||
class wxSize /PyName=Size/
|
||||
{
|
||||
%TypeHeaderCode
|
||||
#include <wx/gdicmn.h>
|
||||
%End
|
||||
|
||||
public:
|
||||
wxSize();
|
||||
|
||||
wxSize(
|
||||
int width,
|
||||
int height
|
||||
);
|
||||
|
||||
void DecBy(
|
||||
const wxPoint & pt
|
||||
);
|
||||
|
||||
void DecBy(
|
||||
const wxSize & size
|
||||
);
|
||||
|
||||
void DecBy(
|
||||
int dx,
|
||||
int dy
|
||||
);
|
||||
|
||||
void DecBy(
|
||||
int d
|
||||
);
|
||||
|
||||
void IncBy(
|
||||
const wxPoint & pt
|
||||
);
|
||||
|
||||
void IncBy(
|
||||
const wxSize & size
|
||||
);
|
||||
|
||||
void IncBy(
|
||||
int dx,
|
||||
int dy
|
||||
);
|
||||
|
||||
void IncBy(
|
||||
int d
|
||||
);
|
||||
|
||||
wxSize & operator+=(
|
||||
const wxSize & sz
|
||||
);
|
||||
|
||||
wxSize & operator-=(
|
||||
const wxSize & sz
|
||||
);
|
||||
|
||||
wxSize & operator/=(
|
||||
int factor
|
||||
);
|
||||
|
||||
wxSize & operator*=(
|
||||
int factor
|
||||
);
|
||||
|
||||
void DecTo(
|
||||
const wxSize & size
|
||||
);
|
||||
|
||||
int GetHeight();
|
||||
|
||||
int GetWidth();
|
||||
|
||||
void IncTo(
|
||||
const wxSize & size
|
||||
);
|
||||
|
||||
bool IsFullySpecified();
|
||||
|
||||
wxSize & Scale(
|
||||
float xscale,
|
||||
float yscale
|
||||
);
|
||||
|
||||
void Set(
|
||||
int width,
|
||||
int height
|
||||
);
|
||||
|
||||
void SetDefaults(
|
||||
const wxSize & sizeDefault
|
||||
);
|
||||
|
||||
void SetHeight(
|
||||
int height
|
||||
);
|
||||
|
||||
void SetWidth(
|
||||
int width
|
||||
);
|
||||
|
||||
%Property(name=width, get=GetWidth, set=SetWidth)
|
||||
%Property(name=height, get=GetHeight, set=SetHeight)
|
||||
}; // end of class wxSize
|
||||
|
||||
|
||||
bool operator==(const wxSize& s1, const wxSize& s2);
|
||||
bool operator!=(const wxSize& s1, const wxSize& s2);
|
||||
wxSize operator*(const wxSize& s, int i);
|
||||
wxSize operator*(int i, const wxSize& s);
|
||||
wxSize operator+(const wxSize& s1, const wxSize& s2);
|
||||
wxSize operator-(const wxSize& s1, const wxSize& s2);
|
||||
wxSize operator/(const wxSize& s, int i);
|
||||
|
||||
|
||||
class wxRect /PyName=Rect/
|
||||
{
|
||||
%TypeHeaderCode
|
||||
#include <wx/gdicmn.h>
|
||||
%End
|
||||
|
||||
public:
|
||||
wxRect();
|
||||
|
||||
wxRect(
|
||||
int x,
|
||||
int y,
|
||||
int width,
|
||||
int height
|
||||
);
|
||||
|
||||
wxRect(
|
||||
const wxPoint & topLeft,
|
||||
const wxPoint & bottomRight
|
||||
);
|
||||
|
||||
wxRect(
|
||||
const wxPoint & pos,
|
||||
const wxSize & size
|
||||
);
|
||||
|
||||
wxRect(
|
||||
const wxSize & size
|
||||
);
|
||||
|
||||
wxRect CentreIn(
|
||||
const wxRect & r,
|
||||
int dir = wxBOTH
|
||||
);
|
||||
|
||||
wxRect CenterIn(
|
||||
const wxRect & r,
|
||||
int dir = wxBOTH
|
||||
);
|
||||
|
||||
wxRect & Deflate(
|
||||
wxCoord dx,
|
||||
wxCoord dy
|
||||
);
|
||||
|
||||
wxRect & Deflate(
|
||||
const wxSize & diff
|
||||
);
|
||||
|
||||
wxRect & Deflate(
|
||||
wxCoord diff
|
||||
);
|
||||
|
||||
wxRect & Inflate(
|
||||
wxCoord dx,
|
||||
wxCoord dy
|
||||
);
|
||||
|
||||
wxRect & Inflate(
|
||||
const wxSize & diff
|
||||
);
|
||||
|
||||
wxRect & Inflate(
|
||||
wxCoord diff
|
||||
);
|
||||
|
||||
void Offset(
|
||||
wxCoord dx,
|
||||
wxCoord dy
|
||||
);
|
||||
|
||||
void Offset(
|
||||
const wxPoint & pt
|
||||
);
|
||||
|
||||
wxRect & Union(
|
||||
const wxRect & rect
|
||||
);
|
||||
|
||||
wxRect & operator+=(
|
||||
const wxRect & r
|
||||
);
|
||||
|
||||
wxRect & operator*=(
|
||||
const wxRect & r
|
||||
);
|
||||
|
||||
int height;
|
||||
int width;
|
||||
int x;
|
||||
int y;
|
||||
bool Contains(
|
||||
int x,
|
||||
int y
|
||||
);
|
||||
|
||||
bool Contains(
|
||||
const wxPoint & pt
|
||||
);
|
||||
|
||||
bool Contains(
|
||||
const wxRect & rect
|
||||
);
|
||||
|
||||
int GetBottom();
|
||||
|
||||
wxPoint GetBottomLeft();
|
||||
|
||||
wxPoint GetBottomRight();
|
||||
|
||||
int GetHeight();
|
||||
|
||||
int GetLeft();
|
||||
|
||||
wxPoint GetPosition();
|
||||
|
||||
int GetRight();
|
||||
|
||||
wxSize GetSize();
|
||||
|
||||
int GetTop();
|
||||
|
||||
wxPoint GetTopLeft();
|
||||
|
||||
wxPoint GetTopRight();
|
||||
|
||||
int GetWidth();
|
||||
|
||||
int GetX();
|
||||
|
||||
int GetY();
|
||||
|
||||
wxRect & Intersect(
|
||||
const wxRect & rect
|
||||
);
|
||||
|
||||
bool Intersects(
|
||||
const wxRect & rect
|
||||
);
|
||||
|
||||
bool IsEmpty();
|
||||
|
||||
void SetHeight(
|
||||
int height
|
||||
);
|
||||
|
||||
void SetSize(
|
||||
const wxSize & s
|
||||
);
|
||||
|
||||
void SetWidth(
|
||||
int width
|
||||
);
|
||||
|
||||
void SetX(
|
||||
int x
|
||||
);
|
||||
|
||||
void SetY(
|
||||
int y
|
||||
);
|
||||
|
||||
}; // end of class wxRect
|
||||
|
||||
|
||||
bool operator==(const wxRect& r1, const wxRect& r2);
|
||||
bool operator!=(const wxRect& r1, const wxRect& r2);
|
||||
wxRect operator+(const wxRect& r1, const wxRect& r2);
|
||||
wxRect operator*(const wxRect& r1, const wxRect& r2);
|
||||
|
||||
|
||||
class wxRealPoint /PyName=RealPoint/
|
||||
{
|
||||
%TypeHeaderCode
|
||||
#include <wx/gdicmn.h>
|
||||
%End
|
||||
|
||||
public:
|
||||
wxRealPoint();
|
||||
|
||||
wxRealPoint(
|
||||
double x,
|
||||
double y
|
||||
);
|
||||
|
||||
wxRealPoint(
|
||||
const wxPoint & pt
|
||||
);
|
||||
|
||||
wxRealPoint & operator+=(
|
||||
const wxRealPoint & pt
|
||||
);
|
||||
|
||||
wxRealPoint & operator+=(
|
||||
const wxSize & sz
|
||||
);
|
||||
|
||||
wxRealPoint & operator-=(
|
||||
const wxRealPoint & pt
|
||||
);
|
||||
|
||||
wxRealPoint & operator-=(
|
||||
const wxSize & sz
|
||||
);
|
||||
|
||||
double x;
|
||||
double y;
|
||||
}; // end of class wxRealPoint
|
||||
|
||||
|
||||
bool operator==(const wxRealPoint& p1, const wxRealPoint& p2);
|
||||
bool operator!=(const wxRealPoint& p1, const wxRealPoint& p2);
|
||||
wxRealPoint operator*(const wxRealPoint& s, double i);
|
||||
wxRealPoint operator*(double i, const wxRealPoint& s);
|
||||
wxRealPoint operator+(const wxRealPoint& p1, const wxRealPoint& p2);
|
||||
wxRealPoint operator-(const wxRealPoint& p1, const wxRealPoint& p2);
|
||||
wxRealPoint operator/(const wxRealPoint& s, int i);
|
||||
|
||||
|
||||
enum wxBitmapType /PyName=BitmapType/
|
||||
{
|
||||
wxBITMAP_TYPE_INVALID /PyName=BITMAP_TYPE_INVALID/,
|
||||
wxBITMAP_TYPE_BMP /PyName=BITMAP_TYPE_BMP/,
|
||||
wxBITMAP_TYPE_ICO /PyName=BITMAP_TYPE_ICO/,
|
||||
wxBITMAP_TYPE_CUR /PyName=BITMAP_TYPE_CUR/,
|
||||
wxBITMAP_TYPE_XBM /PyName=BITMAP_TYPE_XBM/,
|
||||
wxBITMAP_TYPE_XBM_DATA /PyName=BITMAP_TYPE_XBM_DATA/,
|
||||
wxBITMAP_TYPE_XPM /PyName=BITMAP_TYPE_XPM/,
|
||||
wxBITMAP_TYPE_XPM_DATA /PyName=BITMAP_TYPE_XPM_DATA/,
|
||||
wxBITMAP_TYPE_TIF /PyName=BITMAP_TYPE_TIF/,
|
||||
wxBITMAP_TYPE_GIF /PyName=BITMAP_TYPE_GIF/,
|
||||
wxBITMAP_TYPE_PNG /PyName=BITMAP_TYPE_PNG/,
|
||||
wxBITMAP_TYPE_JPEG /PyName=BITMAP_TYPE_JPEG/,
|
||||
wxBITMAP_TYPE_PNM /PyName=BITMAP_TYPE_PNM/,
|
||||
wxBITMAP_TYPE_PCX /PyName=BITMAP_TYPE_PCX/,
|
||||
wxBITMAP_TYPE_PICT /PyName=BITMAP_TYPE_PICT/,
|
||||
wxBITMAP_TYPE_ICON /PyName=BITMAP_TYPE_ICON/,
|
||||
wxBITMAP_TYPE_ANI /PyName=BITMAP_TYPE_ANI/,
|
||||
wxBITMAP_TYPE_IFF /PyName=BITMAP_TYPE_IFF/,
|
||||
wxBITMAP_TYPE_TGA /PyName=BITMAP_TYPE_TGA/,
|
||||
wxBITMAP_TYPE_MACCURSOR /PyName=BITMAP_TYPE_MACCURSOR/,
|
||||
wxBITMAP_TYPE_ANY /PyName=BITMAP_TYPE_ANY/
|
||||
};
|
||||
|
||||
enum wxPolygonFillMode /PyName=PolygonFillMode/
|
||||
{
|
||||
wxODDEVEN_RULE /PyName=ODDEVEN_RULE/,
|
||||
wxWINDING_RULE /PyName=WINDING_RULE/
|
||||
};
|
||||
|
||||
enum wxStockCursor /PyName=StockCursor/
|
||||
{
|
||||
wxCURSOR_NONE /PyName=CURSOR_NONE/,
|
||||
wxCURSOR_ARROW /PyName=CURSOR_ARROW/,
|
||||
wxCURSOR_RIGHT_ARROW /PyName=CURSOR_RIGHT_ARROW/,
|
||||
wxCURSOR_BULLSEYE /PyName=CURSOR_BULLSEYE/,
|
||||
wxCURSOR_CHAR /PyName=CURSOR_CHAR/,
|
||||
wxCURSOR_CROSS /PyName=CURSOR_CROSS/,
|
||||
wxCURSOR_HAND /PyName=CURSOR_HAND/,
|
||||
wxCURSOR_IBEAM /PyName=CURSOR_IBEAM/,
|
||||
wxCURSOR_LEFT_BUTTON /PyName=CURSOR_LEFT_BUTTON/,
|
||||
wxCURSOR_MAGNIFIER /PyName=CURSOR_MAGNIFIER/,
|
||||
wxCURSOR_MIDDLE_BUTTON /PyName=CURSOR_MIDDLE_BUTTON/,
|
||||
wxCURSOR_NO_ENTRY /PyName=CURSOR_NO_ENTRY/,
|
||||
wxCURSOR_PAINT_BRUSH /PyName=CURSOR_PAINT_BRUSH/,
|
||||
wxCURSOR_PENCIL /PyName=CURSOR_PENCIL/,
|
||||
wxCURSOR_POINT_LEFT /PyName=CURSOR_POINT_LEFT/,
|
||||
wxCURSOR_POINT_RIGHT /PyName=CURSOR_POINT_RIGHT/,
|
||||
wxCURSOR_QUESTION_ARROW /PyName=CURSOR_QUESTION_ARROW/,
|
||||
wxCURSOR_RIGHT_BUTTON /PyName=CURSOR_RIGHT_BUTTON/,
|
||||
wxCURSOR_SIZENESW /PyName=CURSOR_SIZENESW/,
|
||||
wxCURSOR_SIZENS /PyName=CURSOR_SIZENS/,
|
||||
wxCURSOR_SIZENWSE /PyName=CURSOR_SIZENWSE/,
|
||||
wxCURSOR_SIZEWE /PyName=CURSOR_SIZEWE/,
|
||||
wxCURSOR_SIZING /PyName=CURSOR_SIZING/,
|
||||
wxCURSOR_SPRAYCAN /PyName=CURSOR_SPRAYCAN/,
|
||||
wxCURSOR_WAIT /PyName=CURSOR_WAIT/,
|
||||
wxCURSOR_WATCH /PyName=CURSOR_WATCH/,
|
||||
wxCURSOR_BLANK /PyName=CURSOR_BLANK/,
|
||||
wxCURSOR_DEFAULT /PyName=CURSOR_DEFAULT/,
|
||||
wxCURSOR_COPY_ARROW /PyName=CURSOR_COPY_ARROW/,
|
||||
wxCURSOR_ARROWWAIT /PyName=CURSOR_ARROWWAIT/,
|
||||
wxCURSOR_MAX /PyName=CURSOR_MAX/
|
||||
};
|
||||
|
||||
const wxPoint wxDefaultPosition /PyName=DefaultPosition/;
|
||||
|
||||
const wxSize wxDefaultSize /PyName=DefaultSize/;
|
||||
|
||||
bool wxColourDisplay() /PyName=ColourDisplay/;
|
||||
|
||||
int wxDisplayDepth() /PyName=DisplayDepth/;
|
||||
|
||||
void wxClientDisplayRect(
|
||||
int * x /Out/,
|
||||
int * y /Out/,
|
||||
int * width /Out/,
|
||||
int * height /Out/
|
||||
) /PyName=ClientDisplayRect/;
|
||||
|
||||
wxRect wxGetClientDisplayRect() /PyName=GetClientDisplayRect/;
|
||||
|
||||
wxSize wxGetDisplayPPI() /PyName=GetDisplayPPI/;
|
||||
|
||||
void wxDisplaySize(
|
||||
int * width /Out/,
|
||||
int * height /Out/
|
||||
) /PyName=DisplaySize/;
|
||||
|
||||
wxSize wxGetDisplaySize() /PyName=GetDisplaySize/;
|
||||
|
||||
void wxDisplaySizeMM(
|
||||
int * width /Out/,
|
||||
int * height /Out/
|
||||
) /PyName=DisplaySizeMM/;
|
||||
|
||||
wxSize wxGetDisplaySizeMM() /PyName=GetDisplaySizeMM/;
|
||||
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
377
sip/gen/geometry.sip
Normal file
377
sip/gen/geometry.sip
Normal file
@@ -0,0 +1,377 @@
|
||||
//---------------------------------------------------------------------------
|
||||
// This file is generated by wxPython's SIP generator. Do not edit by hand.
|
||||
//
|
||||
// Copyright: (c) 2010 by Total Control Software
|
||||
// Licence: wxWindows license
|
||||
//
|
||||
// This file is included from _core.sip
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
|
||||
%ModuleHeaderCode
|
||||
#include <wx/wx.h>
|
||||
%End
|
||||
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
class wxPoint2DDouble /PyName=Point2D/
|
||||
{
|
||||
%TypeHeaderCode
|
||||
#include <wx/geometry.h>
|
||||
%End
|
||||
|
||||
public:
|
||||
wxPoint2DDouble();
|
||||
|
||||
wxPoint2DDouble(
|
||||
wxDouble x,
|
||||
wxDouble y
|
||||
);
|
||||
|
||||
wxPoint2DDouble(
|
||||
const wxPoint2DDouble & pt
|
||||
);
|
||||
|
||||
wxPoint2DDouble(
|
||||
const wxPoint & pt
|
||||
);
|
||||
|
||||
wxDouble m_x /PyName=x/;
|
||||
wxDouble m_y /PyName=y/;
|
||||
void GetFloor(
|
||||
wxInt32 * x /Out/,
|
||||
wxInt32 * y /Out/
|
||||
);
|
||||
|
||||
void GetRounded(
|
||||
wxInt32 * x /Out/,
|
||||
wxInt32 * y /Out/
|
||||
);
|
||||
|
||||
wxDouble GetVectorLength();
|
||||
|
||||
wxDouble GetVectorAngle();
|
||||
|
||||
void SetVectorLength(
|
||||
wxDouble length
|
||||
);
|
||||
|
||||
void SetVectorAngle(
|
||||
wxDouble degrees
|
||||
);
|
||||
|
||||
void Normalize();
|
||||
|
||||
wxDouble GetDistance(
|
||||
const wxPoint2DDouble & pt
|
||||
);
|
||||
|
||||
wxDouble GetDistanceSquare(
|
||||
const wxPoint2DDouble & pt
|
||||
);
|
||||
|
||||
wxDouble GetDotProduct(
|
||||
const wxPoint2DDouble & vec
|
||||
);
|
||||
|
||||
wxDouble GetCrossProduct(
|
||||
const wxPoint2DDouble & vec
|
||||
);
|
||||
|
||||
wxPoint2DDouble operator-();
|
||||
|
||||
wxPoint2DDouble & operator+=(
|
||||
const wxPoint2DDouble & pt
|
||||
);
|
||||
|
||||
wxPoint2DDouble & operator-=(
|
||||
const wxPoint2DDouble & pt
|
||||
);
|
||||
|
||||
wxPoint2DDouble & operator*=(
|
||||
const wxPoint2DDouble & pt
|
||||
);
|
||||
|
||||
wxPoint2DDouble & operator/=(
|
||||
const wxPoint2DDouble & pt
|
||||
);
|
||||
|
||||
bool operator==(
|
||||
const wxPoint2DDouble & pt
|
||||
);
|
||||
|
||||
bool operator!=(
|
||||
const wxPoint2DDouble & pt
|
||||
);
|
||||
|
||||
}; // end of class wxPoint2DDouble
|
||||
|
||||
|
||||
class wxRect2DDouble /PyName=Rect2D/
|
||||
{
|
||||
%TypeHeaderCode
|
||||
#include <wx/geometry.h>
|
||||
%End
|
||||
|
||||
public:
|
||||
wxRect2DDouble();
|
||||
|
||||
wxRect2DDouble(
|
||||
wxDouble x,
|
||||
wxDouble y,
|
||||
wxDouble w,
|
||||
wxDouble h
|
||||
);
|
||||
|
||||
wxDouble m_x /PyName=x/;
|
||||
wxDouble m_y /PyName=y/;
|
||||
wxDouble m_width /PyName=width/;
|
||||
wxDouble m_height /PyName=height/;
|
||||
wxPoint2DDouble GetPosition();
|
||||
|
||||
wxSize GetSize();
|
||||
|
||||
wxDouble GetLeft();
|
||||
|
||||
void SetLeft(
|
||||
wxDouble n
|
||||
);
|
||||
|
||||
void MoveLeftTo(
|
||||
wxDouble n
|
||||
);
|
||||
|
||||
wxDouble GetTop();
|
||||
|
||||
void SetTop(
|
||||
wxDouble n
|
||||
);
|
||||
|
||||
void MoveTopTo(
|
||||
wxDouble n
|
||||
);
|
||||
|
||||
wxDouble GetBottom();
|
||||
|
||||
void SetBottom(
|
||||
wxDouble n
|
||||
);
|
||||
|
||||
void MoveBottomTo(
|
||||
wxDouble n
|
||||
);
|
||||
|
||||
wxDouble GetRight();
|
||||
|
||||
void SetRight(
|
||||
wxDouble n
|
||||
);
|
||||
|
||||
void MoveRightTo(
|
||||
wxDouble n
|
||||
);
|
||||
|
||||
wxPoint2DDouble GetLeftTop();
|
||||
|
||||
void SetLeftTop(
|
||||
const wxPoint2DDouble & pt
|
||||
);
|
||||
|
||||
void MoveLeftTopTo(
|
||||
const wxPoint2DDouble & pt
|
||||
);
|
||||
|
||||
wxPoint2DDouble GetLeftBottom();
|
||||
|
||||
void SetLeftBottom(
|
||||
const wxPoint2DDouble & pt
|
||||
);
|
||||
|
||||
void MoveLeftBottomTo(
|
||||
const wxPoint2DDouble & pt
|
||||
);
|
||||
|
||||
wxPoint2DDouble GetRightTop();
|
||||
|
||||
void SetRightTop(
|
||||
const wxPoint2DDouble & pt
|
||||
);
|
||||
|
||||
void MoveRightTopTo(
|
||||
const wxPoint2DDouble & pt
|
||||
);
|
||||
|
||||
wxPoint2DDouble GetRightBottom();
|
||||
|
||||
void SetRightBottom(
|
||||
const wxPoint2DDouble & pt
|
||||
);
|
||||
|
||||
void MoveRightBottomTo(
|
||||
const wxPoint2DDouble & pt
|
||||
);
|
||||
|
||||
wxPoint2DDouble GetCentre();
|
||||
|
||||
void SetCentre(
|
||||
const wxPoint2DDouble & pt
|
||||
);
|
||||
|
||||
void MoveCentreTo(
|
||||
const wxPoint2DDouble & pt
|
||||
);
|
||||
|
||||
wxOutCode GetOutCode(
|
||||
const wxPoint2DDouble & pt
|
||||
);
|
||||
|
||||
wxOutCode GetOutcode(
|
||||
const wxPoint2DDouble & pt
|
||||
);
|
||||
|
||||
bool Contains(
|
||||
const wxPoint2DDouble & pt
|
||||
);
|
||||
|
||||
bool Contains(
|
||||
const wxRect2DDouble & rect
|
||||
);
|
||||
|
||||
bool IsEmpty();
|
||||
|
||||
bool HaveEqualSize(
|
||||
const wxRect2DDouble & rect
|
||||
);
|
||||
|
||||
void Inset(
|
||||
wxDouble x,
|
||||
wxDouble y
|
||||
);
|
||||
|
||||
void Inset(
|
||||
wxDouble left,
|
||||
wxDouble top,
|
||||
wxDouble right,
|
||||
wxDouble bottom
|
||||
);
|
||||
|
||||
void Offset(
|
||||
const wxPoint2DDouble & pt
|
||||
);
|
||||
|
||||
void ConstrainTo(
|
||||
const wxRect2DDouble & rect
|
||||
);
|
||||
|
||||
wxPoint2DDouble Interpolate(
|
||||
wxInt32 widthfactor,
|
||||
wxInt32 heightfactor
|
||||
);
|
||||
|
||||
void Intersect(
|
||||
const wxRect2DDouble & otherRect
|
||||
);
|
||||
|
||||
static
|
||||
void Intersect(
|
||||
const wxRect2DDouble & src1,
|
||||
const wxRect2DDouble & src2,
|
||||
wxRect2DDouble * dest
|
||||
);
|
||||
|
||||
wxRect2DDouble CreateIntersection(
|
||||
const wxRect2DDouble & otherRect
|
||||
);
|
||||
|
||||
bool Intersects(
|
||||
const wxRect2DDouble & rect
|
||||
);
|
||||
|
||||
void Union(
|
||||
const wxRect2DDouble & otherRect
|
||||
);
|
||||
|
||||
void Union(
|
||||
const wxPoint2DDouble & pt
|
||||
);
|
||||
|
||||
static
|
||||
void Union(
|
||||
const wxRect2DDouble & src1,
|
||||
const wxRect2DDouble & src2,
|
||||
wxRect2DDouble * dest
|
||||
);
|
||||
|
||||
wxRect2DDouble CreateUnion(
|
||||
const wxRect2DDouble & otherRect
|
||||
);
|
||||
|
||||
void Scale(
|
||||
wxDouble f
|
||||
);
|
||||
|
||||
void Scale(
|
||||
wxInt32 num,
|
||||
wxInt32 denum
|
||||
);
|
||||
|
||||
bool operator==(
|
||||
const wxRect2DDouble & rect
|
||||
);
|
||||
|
||||
bool operator!=(
|
||||
const wxRect2DDouble & rect
|
||||
);
|
||||
|
||||
}; // end of class wxRect2DDouble
|
||||
|
||||
|
||||
enum wxOutCode /PyName=OutCode/
|
||||
{
|
||||
wxInside /PyName=Inside/,
|
||||
wxOutLeft /PyName=OutLeft/,
|
||||
wxOutRight /PyName=OutRight/,
|
||||
wxOutTop /PyName=OutTop/,
|
||||
wxOutBottom /PyName=OutBottom/
|
||||
};
|
||||
|
||||
wxPoint2DDouble operator+(
|
||||
const wxPoint2DDouble & pt1,
|
||||
const wxPoint2DDouble & pt2
|
||||
);
|
||||
|
||||
wxPoint2DDouble operator-(
|
||||
const wxPoint2DDouble & pt1,
|
||||
const wxPoint2DDouble & pt2
|
||||
);
|
||||
|
||||
wxPoint2DDouble operator*(
|
||||
const wxPoint2DDouble & pt1,
|
||||
const wxPoint2DDouble & pt2
|
||||
);
|
||||
|
||||
wxPoint2DDouble operator*(
|
||||
wxDouble n,
|
||||
const wxPoint2DDouble & pt
|
||||
);
|
||||
|
||||
wxPoint2DDouble operator*(
|
||||
const wxPoint2DDouble & pt,
|
||||
wxDouble n
|
||||
);
|
||||
|
||||
wxPoint2DDouble operator/(
|
||||
const wxPoint2DDouble & pt1,
|
||||
const wxPoint2DDouble & pt2
|
||||
);
|
||||
|
||||
wxPoint2DDouble operator/(
|
||||
const wxPoint2DDouble & pt,
|
||||
wxDouble n
|
||||
);
|
||||
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
116
sip/gen/object.sip
Normal file
116
sip/gen/object.sip
Normal file
@@ -0,0 +1,116 @@
|
||||
//---------------------------------------------------------------------------
|
||||
// This file is generated by wxPython's SIP generator. Do not edit by hand.
|
||||
//
|
||||
// Copyright: (c) 2010 by Total Control Software
|
||||
// Licence: wxWindows license
|
||||
//
|
||||
// This file is included from _core.sip
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
class wxRefCounter /PyName=RefCounter/
|
||||
{
|
||||
%TypeHeaderCode
|
||||
#include <wx/object.h>
|
||||
%End
|
||||
|
||||
public:
|
||||
wxRefCounter();
|
||||
|
||||
void DecRef();
|
||||
|
||||
int GetRefCount();
|
||||
|
||||
void IncRef();
|
||||
|
||||
|
||||
protected:
|
||||
virtual
|
||||
~wxRefCounter();
|
||||
|
||||
}; // end of class wxRefCounter
|
||||
|
||||
|
||||
class wxObject /PyName=Object/
|
||||
{
|
||||
%TypeHeaderCode
|
||||
#include <wx/object.h>
|
||||
%End
|
||||
|
||||
public:
|
||||
wxObject();
|
||||
|
||||
wxObject(
|
||||
const wxObject & other
|
||||
);
|
||||
|
||||
virtual
|
||||
~wxObject();
|
||||
|
||||
virtual
|
||||
wxClassInfo * GetClassInfo();
|
||||
|
||||
wxObjectRefData * GetRefData();
|
||||
|
||||
bool IsKindOf(
|
||||
const wxClassInfo * info
|
||||
);
|
||||
|
||||
bool IsSameAs(
|
||||
const wxObject & obj
|
||||
);
|
||||
|
||||
void Ref(
|
||||
const wxObject & clone
|
||||
);
|
||||
|
||||
void SetRefData(
|
||||
wxObjectRefData * data
|
||||
);
|
||||
|
||||
void UnRef();
|
||||
|
||||
void UnShare();
|
||||
|
||||
}; // end of class wxObject
|
||||
|
||||
|
||||
class wxClassInfo /PyName=ClassInfo, Abstract/
|
||||
{
|
||||
%TypeHeaderCode
|
||||
#include <wx/object.h>
|
||||
%End
|
||||
|
||||
public:
|
||||
wxObject * CreateObject();
|
||||
|
||||
const wxChar * GetBaseClassName1();
|
||||
|
||||
const wxChar * GetBaseClassName2();
|
||||
|
||||
const wxChar * GetClassName();
|
||||
|
||||
int GetSize();
|
||||
|
||||
bool IsDynamic();
|
||||
|
||||
bool IsKindOf(
|
||||
const wxClassInfo * info
|
||||
);
|
||||
|
||||
static
|
||||
wxClassInfo * FindClass(
|
||||
const wxString & className
|
||||
);
|
||||
|
||||
}; // end of class wxClassInfo
|
||||
|
||||
|
||||
typedef wxRefCounter wxObjectRefData;
|
||||
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user