X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b39fe9514578dc76bd595e243e88e412be70bb61..40131743c6b71881ec36f206f88fa2932c36925b:/wxPython/src/mac/animate_wrap.cpp diff --git a/wxPython/src/mac/animate_wrap.cpp b/wxPython/src/mac/animate_wrap.cpp index f1dbd328ca..80f6c7f8f2 100644 --- a/wxPython/src/mac/animate_wrap.cpp +++ b/wxPython/src/mac/animate_wrap.cpp @@ -3276,6 +3276,45 @@ fail: } +SWIGINTERN PyObject *_wrap_Animation_GetFrameSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { + PyObject *resultobj = 0; + wxAnimation *arg1 = (wxAnimation *) 0 ; + size_t arg2 ; + wxSize result; + void *argp1 = 0 ; + int res1 = 0 ; + size_t val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + char * kwnames[] = { + (char *) "self",(char *) "frame", NULL + }; + + if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Animation_GetFrameSize",kwnames,&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAnimation, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Animation_GetFrameSize" "', expected argument " "1"" of type '" "wxAnimation const *""'"); + } + arg1 = reinterpret_cast< wxAnimation * >(argp1); + ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Animation_GetFrameSize" "', expected argument " "2"" of type '" "size_t""'"); + } + arg2 = static_cast< size_t >(val2); + { + PyThreadState* __tstate = wxPyBeginAllowThreads(); + result = ((wxAnimation const *)arg1)->GetFrameSize(arg2); + wxPyEndAllowThreads(__tstate); + if (PyErr_Occurred()) SWIG_fail; + } + resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + SWIGINTERN PyObject *_wrap_Animation_GetDisposalMethod(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { PyObject *resultobj = 0; wxAnimation *arg1 = (wxAnimation *) 0 ; @@ -3315,6 +3354,45 @@ fail: } +SWIGINTERN PyObject *_wrap_Animation_GetTransparentColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { + PyObject *resultobj = 0; + wxAnimation *arg1 = (wxAnimation *) 0 ; + size_t arg2 ; + wxColour result; + void *argp1 = 0 ; + int res1 = 0 ; + size_t val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + char * kwnames[] = { + (char *) "self",(char *) "frame", NULL + }; + + if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Animation_GetTransparentColour",kwnames,&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAnimation, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Animation_GetTransparentColour" "', expected argument " "1"" of type '" "wxAnimation const *""'"); + } + arg1 = reinterpret_cast< wxAnimation * >(argp1); + ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Animation_GetTransparentColour" "', expected argument " "2"" of type '" "size_t""'"); + } + arg2 = static_cast< size_t >(val2); + { + PyThreadState* __tstate = wxPyBeginAllowThreads(); + result = ((wxAnimation const *)arg1)->GetTransparentColour(arg2); + wxPyEndAllowThreads(__tstate); + if (PyErr_Occurred()) SWIG_fail; + } + resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + SWIGINTERN PyObject *_wrap_Animation_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; wxAnimation *arg1 = (wxAnimation *) 0 ; @@ -4000,7 +4078,9 @@ static PyMethodDef SwigMethods[] = { { (char *)"new_Animation", _wrap_new_Animation, METH_VARARGS, NULL}, { (char *)"delete_Animation", (PyCFunction)_wrap_delete_Animation, METH_O, NULL}, { (char *)"Animation_GetFramePosition", (PyCFunction) _wrap_Animation_GetFramePosition, METH_VARARGS | METH_KEYWORDS, NULL}, + { (char *)"Animation_GetFrameSize", (PyCFunction) _wrap_Animation_GetFrameSize, METH_VARARGS | METH_KEYWORDS, NULL}, { (char *)"Animation_GetDisposalMethod", (PyCFunction) _wrap_Animation_GetDisposalMethod, METH_VARARGS | METH_KEYWORDS, NULL}, + { (char *)"Animation_GetTransparentColour", (PyCFunction) _wrap_Animation_GetTransparentColour, METH_VARARGS | METH_KEYWORDS, NULL}, { (char *)"Animation_GetBackgroundColour", (PyCFunction)_wrap_Animation_GetBackgroundColour, METH_O, NULL}, { (char *)"Animation_swigregister", Animation_swigregister, METH_VARARGS, NULL}, { (char *)"Animation_swiginit", Animation_swiginit, METH_VARARGS, NULL},